调整日志

This commit is contained in:
glide-the 2024-05-22 14:27:59 +08:00
parent c46c225ee5
commit 1de4f30b98
3 changed files with 11 additions and 9 deletions

View File

@ -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:

View File

@ -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()

View File

@ -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,
) )