fix(logging): initialize log directory before first log write

This commit is contained in:
2026-07-05 19:21:53 +02:00
parent cc55f55dab
commit 3e887a15a9
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -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