ソースを参照

Fix: ValueError: Formatting field not found in record: 'req_id' (#18327)

tags/1.3.0
Ethan 6ヶ月前
コミット
523efbfea5
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更4行の追加1行の削除
  1. 4
    1
      api/extensions/ext_logging.py

+ 4
- 1
api/extensions/ext_logging.py ファイルの表示

@@ -26,9 +26,12 @@ def init_app(app: DifyApp):

# Always add StreamHandler to log to console
sh = logging.StreamHandler(sys.stdout)
sh.addFilter(RequestIdFilter())
log_handlers.append(sh)

# Apply RequestIdFilter to all handlers
for handler in log_handlers:
handler.addFilter(RequestIdFilter())

logging.basicConfig(
level=dify_config.LOG_LEVEL,
format=dify_config.LOG_FORMAT,

読み込み中…
キャンセル
保存