mirror of
https://codeberg.org/Freedium-cfd/web.git
synced 2026-03-11 09:04:37 +00:00
Update logging
This commit is contained in:
parent
5ed59f3769
commit
c7a7b5a46e
2 changed files with 17 additions and 11 deletions
|
|
@ -236,7 +236,7 @@ class RLStringHelper:
|
|||
end -= 1
|
||||
|
||||
if start == end:
|
||||
logger.warning("Start and end positions are the same")
|
||||
logger.trace("Start and end positions are the same")
|
||||
continue
|
||||
|
||||
logger.trace(f"{len(string_pos_matrix)=}")
|
||||
|
|
|
|||
|
|
@ -44,21 +44,27 @@ def logger_register():
|
|||
"level": LOG_LEVEL,
|
||||
"format": LOG_FORMAT,
|
||||
"enqueue": ENQUEUE,
|
||||
}
|
||||
},
|
||||
]
|
||||
if config.MORE_LOGS:
|
||||
handlers.append({
|
||||
"sink": f"{LOG_FOLDER_PATH}/trace_{pid}_log_server",
|
||||
"level": "TRACE",
|
||||
"format": LOG_FORMAT,
|
||||
"enqueue": ENQUEUE,
|
||||
})
|
||||
handlers.append({
|
||||
|
||||
handlers.append(
|
||||
{
|
||||
"sink": f"{LOG_FOLDER_PATH}/debug_{pid}_log_server",
|
||||
"level": "DEBUG",
|
||||
"format": LOG_FORMAT,
|
||||
"enqueue": ENQUEUE,
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
if config.MORE_LOGS:
|
||||
handlers.append(
|
||||
{
|
||||
"sink": f"{LOG_FOLDER_PATH}/trace_{pid}_log_server",
|
||||
"level": "TRACE",
|
||||
"format": LOG_FORMAT,
|
||||
"enqueue": ENQUEUE,
|
||||
}
|
||||
)
|
||||
logger.configure(
|
||||
handlers=handlers,
|
||||
extra={"id": None},
|
||||
|
|
|
|||
Loading…
Reference in a new issue