Skip to content

Commit

Permalink
APIトレースログの無効化 (#35)
Browse files Browse the repository at this point in the history
SAKURACLOUD_TRACE=ERRORなどでHTTPエラーログのトレースを有効化した場合にAPIトレースログを出力しないようにする
  • Loading branch information
yamamoto-febc authored Jan 30, 2023
1 parent 77eecc0 commit facac73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profile/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func EnableAPITrace(strTraceMode string) bool {
}

// TraceModeが"http"の場合はfalseにする(TraceMode=1などの場合はAPI/HTTP両方が有効になる)
if traceMode == EnableHTTPTraceWord {
if traceMode == EnableHTTPTraceWord || traceMode == "error" {
return false
}
return true
Expand Down

0 comments on commit facac73

Please sign in to comment.