Skip to content

Commit 44ced68

Browse files
committed
fix logging config bug on windows systems
1 parent 79e2c54 commit 44ced68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logging_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def doRollover(self):
191191
# 'loggers': {} # all other loggers except for root
192192
}
193193

194-
if os.uname()[0] == 'Darwin':
194+
if os.name == 'posix' and os.uname()[0] == 'Darwin':
195195
logging_config['formatters']['tts_formatter'] = {
196196
'format': format_str_tts
197197
}

0 commit comments

Comments
 (0)