Skip to content

Commit cdcaf03

Browse files
Robin-K-Lynntlecomte
authored andcommitted
Logs write to log directory instead of data
1 parent 25c121e commit cdcaf03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

friture/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def main():
352352
formatter = logging.Formatter(logFormat)
353353

354354
logFileName = "friture.log.txt"
355-
logDir = platformdirs.user_data_dir("Friture", "")
355+
logDir = platformdirs.user_log_dir("Friture", "")
356356
try:
357357
os.makedirs(logDir)
358358
except OSError as e:

friture/exceptionhandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def fileexcepthook(exception_type, exception_value, traceback_object):
3838

3939
# same as in analyzer.py
4040
logFileName = "friture.log.txt"
41-
logDir = platformdirs.user_data_dir("Friture", "")
41+
logDir = platformdirs.user_log_dir("Friture", "")
4242

4343
4444

0 commit comments

Comments
 (0)