From 1d574dfc416d15fcdd875f01219484f3a690609d Mon Sep 17 00:00:00 2001 From: yanghua Date: Fri, 13 Sep 2024 10:33:51 +0800 Subject: [PATCH] Add line number and file name to log format --- tosfs/consts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tosfs/consts.py b/tosfs/consts.py index ef41521..07c3916 100644 --- a/tosfs/consts.py +++ b/tosfs/consts.py @@ -33,4 +33,4 @@ # environment variable names ENV_NAME_TOSFS_LOGGING_LEVEL = "TOSFS_LOGGING_LEVEL" -TOSFS_LOG_FORMAT = "%(asctime)s %(name)s [%(levelname)s] %(funcName)s : %(message)s" +TOSFS_LOG_FORMAT = "%(asctime)s %(name)s [%(levelname)s] %(filename)s:%(lineno)d %(funcName)s : %(message)s"