我在日志上看到很多 Postgres 斷開連接事件,有什么方法可以禁用這個特定的日志嗎?
May 30 10:13:08 my-app app/postgres.456514 [SILVER] [11-1] sql_error_code = 00000 time_ms = "2022-05-30 10:13:07.600 UTC" pid="1235859" proc_start_time="2022-05-30 10:13:07 UTC" session_id="629398b4.12db93" vtid="" tid="0" log_line="3" database="XXX" connection_source="34.220.26.230(57398)" user="XXX" application_name="my-app-web.2" LOG: disconnection: session time: 0:00:00.051 user=XXXX database=XXX host=34.220.26.230 port=57398
uj5u.com熱心網友回復:
引數為:log_disconnections (boolean) 記錄會話終止。日志輸出提供類似于 log_connections 的資訊,以及會話的持續時間。只有超級用戶可以在會話開始時更改此引數,并且在會話中根本無法更改。默認為關閉。
https://www.postgresql.org/docs/current/runtime-config-logging.html
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/483032.html
標籤:PostgreSQL heroku
上一篇:如何從iterrows()函式(Python和Pandas)獲取上一個日期
下一篇:盡管它是回傳型別,但函式不回傳表
