File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 32
32
config = yaml .safe_load (config_file .read ())
33
33
34
34
config ['handlers' ]['timedRotatingFile' ]['filename' ] = paths .LOG_FILE_PATH
35
- paths .makedir_if_not_exists (paths .LOGS_DIR_PATH )
36
35
logging .config .dictConfig (config )
37
36
except Exception :
38
37
# Fallback to a basic configuration
Original file line number Diff line number Diff line change @@ -40,4 +40,5 @@ def makedir_if_not_exists(path):
40
40
PRIVATE_KEY_PATH = os .path .join (PROFILE_PATH , "private_keys" )
41
41
makedir_if_not_exists (PRIVATE_KEY_PATH )
42
42
LOGS_DIR_PATH = os .path .join (PROFILE_PATH , 'logs' )
43
+ makedir_if_not_exists (LOGS_DIR_PATH )
43
44
LOG_FILE_PATH = os .path .join (LOGS_DIR_PATH , 'ictrl_log.log' )
Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ handlers:
18
18
formatter : default
19
19
when : H
20
20
interval : 3
21
+ # See discussion on backupCount decision: https://github.com/junhaoliao/iCtrl/pull/46/files/0c148d0e47dc9ae42014f10a4a04e0aaffca7cbd#r1921487166
21
22
backupCount : 112
22
- # filename: dynamically assigned upon the initialization of the program
23
+ # filename: To be dynamically assigned upon application initialization.
23
24
24
25
root :
25
26
level : DEBUG
You can’t perform that action at this time.
0 commit comments