Debug logs of the specific app help us much in reproducing and understanding potential issues with our apps.
If you submit a bug report, please try to attach a log from Bitbucket, with enabled debugging for corresponding app.
Enabling debug logging for Bitbucket itself, does NOT enable debug logging for installed apps! But app log is also part of Bitbucket log, incl. log rotation. |
Enable debug logging level for a specific app like follows:
$ curl -u <YOUR_USER> -v -X PUT -d "" -H "Content-Type: application/json" <YOUR_SERVER>/rest/api/latest/logs/logger/<PLUGIN_KEY>/debug |
Replace the <PARAMETERS> with the following values:
YOUR_USER: The name of your Bitbucket Server user (needs admin privileges)
$ curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://10.0.1.1/bitbucket/rest/api/latest/logs/logger/ch.mibex.stash.cra/debug |
If it worked, you should get the following result: HTTP/1.1 204 No Content
Now you can reproduce your problem with debug logging.
Collect the debug logs from your BITBUCKET_HOME_DIRECTORY/log/atlassian-bitbucket.log
file.
Reset logging level by executing the request as above, just be replacing debug
with warn
:
$ curl -u <YOUR_USER> -v -X PUT -d "" -H "Content-Type: application/json" <YOUR_SERVER>/rest/api/latest/logs/logger/<PLUGIN_KEY>/warn |
App | App Key |
Activity Streams for Bitbucket Server | ch.mibex.stash.rss4stash |
Code Owners for Bitbucket Server | ch.mibex.bitbucket.codeowners |
Code Review Assistant for Bitbucket | ch.mibex.stash.cra |
Commit Finder for Bitbucket Server | ch.mibex.stash.commitfinder |
Create Branch Wizard for Bitbucket | ch.mibex.bitbucket.createbranchwizard |
Issue Creator for Bitbucket Server | ch.mibex.stash.issuecreator |
Pull Request Analytics for Bitbucket | ch.mibex.bitbucket.pra |
Pull Request Please for Bitbucket Server | ch.mibex.stash.prp |
Repository Dashboard for Bitbucket | ch.mibex.stash.reposummary4stash |
Repository Templates for Bitbucket | ch.mibex.stash.templates |
Suggested Changes for Bitbucket | ch.mibex.bitbucket.suggestedchanges4bitbucket |
Include Code Quality for Bitbucket (formerly Sonar™ for Bitbucket) | ch.mibex.stash.sonar4stash |