How to enable HTTP wire debug logging in Bitbucket Server

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

要約

The wire log is used to log all data transmitted to and from servers when executing HTTP requests. The wire log uses the org.apache.http.wire logging category. This log should only be enabled to debug problems, as it will produce an extremely large amount of log data.  

This article is an extension of the Bitbucket Enable debug logging documentation.  

環境

Bitbucket 6 and Bitbucket 7

ソリューション

To enable debug logging for the org.apache.http.wire logger, run this command in a terminal:

curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/org.apache.http.wire/debug

# e.g.
curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://192.168.1.21:7990/rest/api/latest/logs/logger/org.apache.http.wire/debug


Disable

To disable debug logging for the org.apache.http.wire logger, run this command in a terminal:

curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/org.apache.http.wire/warn

# e.g.
curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://192.168.1.21:7990/rest/api/latest/logs/logger/org.apache.http.wire/warn



最終更新日 2021 年 7 月 9 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.