mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-08 16:10:18 +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"
|
log_path: str = "logs"
|
||||||
) -> None:
|
) -> None:
|
||||||
logging_conf = get_config_dict(
|
logging_conf = get_config_dict(
|
||||||
"DEBUG",
|
"INFO",
|
||||||
get_log_file(log_path=log_path, sub_dir=f"provider_{get_timestamp_ms()}"),
|
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:
|
try:
|
||||||
|
|||||||
@ -23,10 +23,10 @@ if __name__ == "__main__":
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
try:
|
try:
|
||||||
logging_conf = get_config_dict(
|
logging_conf = get_config_dict(
|
||||||
"DEBUG",
|
"INFO",
|
||||||
get_log_file(log_path="logs", sub_dir=f"local_{get_timestamp_ms()}"),
|
get_log_file(log_path="logs", sub_dir=f"local_{get_timestamp_ms()}"),
|
||||||
122,
|
1024*1024*1024*3,
|
||||||
111,
|
1024*1024*1024*3,
|
||||||
)
|
)
|
||||||
boot = (
|
boot = (
|
||||||
BootstrapWebBuilder()
|
BootstrapWebBuilder()
|
||||||
|
|||||||
@ -98,10 +98,11 @@ def pytest_collection_modifyitems(config: Config, items: Sequence[Function]) ->
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def logging_conf() -> dict:
|
def logging_conf() -> dict:
|
||||||
return get_config_dict(
|
return get_config_dict(
|
||||||
"DEBUG",
|
"INFO",
|
||||||
get_log_file(log_path="logs", sub_dir=f"local_{get_timestamp_ms()}"),
|
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