Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.3.0
-
None
Description
Symptoms
com.atlassian.bitbucket.internal.ssh.server.SelfClosingChannelSession generates a lot of log messages:
E.g.
2016-03-04 06:18:44,739 INFO [NioProcessor-8] c.a.b.i.s.s.SelfClosingChannelSession Executing command: git-upload-pack '/foo/bar.git' 2016-03-04 06:18:45,506 INFO [NioProcessor-9] c.a.b.i.s.s.SelfClosingChannelSession Executing command: git-upload-pack '/bar/baz.git'
Workaround
Permanently adjusting the log level
The log level can be adjusted by adding logging.logger.com.atlassian.bitbucket.internal.ssh.server.SelfClosingChannelSession=WARN to $BITBUCKET_HOME/shared/bitbucket.properties
Runtime adjustment
To avoid restarting the instance to apply the log level as described above, the log level can be adjusted at runtime via REST. The following example uses curl (please adjust the host and context path information, the user needs to have global administration permissions):
curl -H'Content-Type:application/json' \ -u USERNAME -d '' \ -v -X PUT https://stash.example.com/rest/api/latest/logs/logger/com.atlassian.bitbucket.internal.ssh.server.SelfClosingChannelSession/WARN