Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit580fda2

Browse files
committed
Add debug log for when logdir defaults to custom tempdir
1 parent4d6fecc commit580fda2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎agent/agent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ func New(options Options) io.Closer {
8989
options.TempDir=os.TempDir()
9090
}
9191
ifoptions.LogDir=="" {
92+
ifoptions.TempDir!=os.TempDir() {
93+
options.Logger.Debug(context.Background(),"log dir not set, using temp dir",slog.F("temp_dir",options.TempDir))
94+
}
9295
options.LogDir=options.TempDir
9396
}
9497
ifoptions.ExchangeToken==nil {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp