Skip to end of banner
Go to start of banner

Enabling debug logging

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Command to enable debug logging

curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/logger/com.mohamicorp/debug
  • Replace “admin” with the username for a Bitbucket administrator

  • Replace “localhost:7990” with the hostname and port of your Bitbucket instance.

  • If your Bitbucket instance is served via HTTPS, update the command above to “https://” instead of “http://”.

If the command is successful, you will see a log line like this in the Bitbucket logs:

[INFO] 2020-09-07 16:45:15,936 WARN [hz.hazelcast.event-5] com.mohamicorp Switching to log level [debug]

Command to disable debug logging

curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/logger/com.mohamicorp/info
  • This command is identical to the first one, except with “info” instead of “debug” at the end.

  • No labels