We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbbd095 commit 9e8f03eCopy full SHA for 9e8f03e
1 file changed
src/config/settings.py
@@ -19,7 +19,8 @@
19
ACTIVE_AUTH_DIR = os.path.join(AUTH_PROFILES_DIR, 'active')
20
SAVED_AUTH_DIR = os.path.join(AUTH_PROFILES_DIR, 'saved')
21
LOG_DIR = os.path.join(PROJECT_ROOT, 'logs')
22
-APP_LOG_FILE_PATH = os.path.join(LOG_DIR, 'app.log')
+# One shared app.log + RotatingFileHandler across uvicorn workers fails on Windows (WinError 32 on rotate).
23
+APP_LOG_FILE_PATH = os.path.join(LOG_DIR, f'app-{os.getpid()}.log')
24
25
# 工具函数
26
def get_environment_variable(key: str, default: str='') -> str:
0 commit comments