fix(logging): initialize log directory before first log write
This commit is contained in:
@@ -278,8 +278,11 @@ _vars_setup() {
|
||||
_set_var TR2GF_LOG_LEVEL 2
|
||||
_set_var TR2GF_BATCH ""
|
||||
|
||||
_init_log
|
||||
|
||||
if [ -f "$TR2GF/vars" ]; then
|
||||
_load_vars_file "$TR2GF/vars"
|
||||
_init_log
|
||||
_notice "Note: using tr2gf configuration from: $TR2GF/vars"
|
||||
_log "Loaded configuration from: $TR2GF/vars" 2
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user