Skip to content

Commit 3d16b90

Browse files
王彦金autozimu
authored andcommitted
Fix logger maxBytes
1 parent d588b18 commit 3d16b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rplugin/python3/LanguageClient/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
logpath = os.path.join(os.getenv("TMP", "/tmp"), "LanguageClient.log")
77
logpath_server = os.path.join(os.getenv("TMP", "/tmp"), "LanguageServer.log")
88
fileHandler = logging.handlers.RotatingFileHandler(
9-
logpath, maxBytes=1024 ** 20, backupCount=2)
9+
logpath, maxBytes=20 * 1024 * 1024, backupCount=2)
1010
fileHandler.setFormatter(
1111
logging.Formatter(
1212
"%(asctime)s %(levelname)-7s [%(threadName)-10s] %(message)s",

0 commit comments

Comments
 (0)