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.isroot/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 was successful, you should this printout in your Bitbucket log:
com.isroot Switching to log level [debug]
Verify that this printout is present before proceeding with further debug testing.
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.isroot/info
This command is identical to the first one, except with “info” instead of “debug” at the end.