mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-03 21:23:13 +08:00
调整日志
This commit is contained in:
parent
c46c225ee5
commit
1de4f30b98
@ -24,10 +24,11 @@ def init_server(model_platforms_shard: Dict,
|
||||
log_path: str = "logs"
|
||||
) -> None:
|
||||
logging_conf = get_config_dict(
|
||||
"DEBUG",
|
||||
"INFO",
|
||||
get_log_file(log_path=log_path, sub_dir=f"provider_{get_timestamp_ms()}"),
|
||||
122,
|
||||
111,
|
||||
|
||||
1024*1024*1024*3,
|
||||
1024*1024*1024*3,
|
||||
)
|
||||
|
||||
try:
|
||||
|
||||
@ -23,10 +23,10 @@ if __name__ == "__main__":
|
||||
args = parser.parse_args()
|
||||
try:
|
||||
logging_conf = get_config_dict(
|
||||
"DEBUG",
|
||||
"INFO",
|
||||
get_log_file(log_path="logs", sub_dir=f"local_{get_timestamp_ms()}"),
|
||||
122,
|
||||
111,
|
||||
1024*1024*1024*3,
|
||||
1024*1024*1024*3,
|
||||
)
|
||||
boot = (
|
||||
BootstrapWebBuilder()
|
||||
|
||||
@ -98,10 +98,11 @@ def pytest_collection_modifyitems(config: Config, items: Sequence[Function]) ->
|
||||
@pytest.fixture
|
||||
def logging_conf() -> dict:
|
||||
return get_config_dict(
|
||||
"DEBUG",
|
||||
"INFO",
|
||||
get_log_file(log_path="logs", sub_dir=f"local_{get_timestamp_ms()}"),
|
||||
122,
|
||||
111,
|
||||
|
||||
1024*1024*1024*3,
|
||||
1024*1024*1024*3,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user