Skip to main content
Skip table of contents

Enabling debug logging

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.mohami/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:

CODE
[INFO] 2020-08-31 17:41:24,555 WARN  [hz.hazelcast.event-3]  com.mohami 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.mohami/info

  • This command is identical to the first one, except with “info” instead of “debug” at the end.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.