Enable debug logging - Snippets for Bitbucket
Use REST API to change the logging level for the plugin package. The logging configuration in the Bitbucket admin area only affects Bitbucket packages.
General debug
Command to enable debug logging
curl -u admin:<password> -v -X PUT -H "Content-Type: application/json" <bitbucket url>/rest/api/latest/logs/logger/curl -u admin:<password> -v -X PUT -H "Content-Type: application/json" <bitbucket url>/rest/api/latest/logs/logger/com.simplenia.stash.plugins.snippets/debug
Command to disable debug logging
curl -u admin:<password> -v -X PUT -H "Content-Type: application/json" <bitbucket url>/rest/api/latest/logs/logger/curl -u admin:<password> -v -X PUT -H "Content-Type: application/json" <bitbucket url>/rest/api/latest/logs/logger/com.simplenia.stash.plugins.snippets/debug
Where:
admin:<password>
is the username and password for a Bitbucket administrator
<bitbucket url>
is the url of your Bitbucket instance
A successful command generates this entry in your Bitbucket log:com.simplenia.stash.plugins.snippets Switching to log level [debug]
Confirm this entry is present before proceeding with further debug testing.
Â