File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def prompt_if_no_arguments(prompt: str) -> Union[str, bool]:
114
114
)
115
115
@click .option (
116
116
"--debug-logs/--no-debug-logs" ,
117
- default = True ,
117
+ default = False ,
118
118
help = "If True, debug logs about the tool's actions will be logged to autofill_log.txt in the tool's directory." ,
119
119
is_flag = True ,
120
120
)
Original file line number Diff line number Diff line change 1
1
import logging
2
+ import os
2
3
from copy import copy
3
4
5
+ from src .io import CURRDIR
4
6
from src .utils import TEXT_BOLD , TEXT_END
5
7
6
8
@@ -32,13 +34,13 @@ def configure_loggers(log_debug_to_file: bool) -> None:
32
34
stdout_handler .addFilter (ConsoleLogFilter ())
33
35
logger .addHandler (stdout_handler )
34
36
35
- file_crash_logger = logging .FileHandler ("autofill_crash_log.txt" )
37
+ file_crash_logger = logging .FileHandler (os . path . join ( CURRDIR , "autofill_crash_log.txt" ) )
36
38
file_crash_logger .setLevel (logging .ERROR )
37
39
file_crash_logger .setFormatter (FileLogFormatter (format_string ))
38
40
logger .addHandler (file_crash_logger )
39
41
40
42
if log_debug_to_file :
41
- file_debug_logger = logging .FileHandler ("autofill_log.txt" )
43
+ file_debug_logger = logging .FileHandler (os . path . join ( CURRDIR , "autofill_log.txt" ) )
42
44
file_debug_logger .setLevel (logging .DEBUG )
43
45
file_debug_logger .setFormatter (FileLogFormatter (format_string ))
44
46
logger .addHandler (file_debug_logger )
You can’t perform that action at this time.
0 commit comments