Skip to content

Commit

Permalink
Merge pull request #171 from projoy/master
Browse files Browse the repository at this point in the history
在docker中启动多个gunicorn进程时,偶发异常"File exists',导致服务启动失败
  • Loading branch information
CZJCC authored Jul 19, 2024
2 parents 8c8977d + 4bacc43 commit 422f033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nacos/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def initLog(self, logDir, log_level, log_rotation_backup_count):
if not logDir.endswith(os.path.sep):
logDir += os.path.sep
if not os.path.exists(logDir):
os.makedirs(logDir)
os.makedirs(logDir, exist_ok=True)

if log_rotation_backup_count is None:
log_rotation_backup_count = 7
Expand Down

0 comments on commit 422f033

Please sign in to comment.