Skip to content

Commit daaa233

Browse files
scottmayhewsimo5
authored andcommitted
Call gp_debug_toggle() sooner
Currently gp_debug_toggle() is called at the end of load_config(), and as a result any GPDEBUG() calls that happen during config processing are no-ops. Signed-off-by: Scott Mayhew <[email protected]>
1 parent 00bcb2d commit daaa233

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gp_config.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ int load_config(struct gp_config *cfg)
611611
goto done;
612612
}
613613

614+
gp_debug_toggle(tmp_dbg_lvl);
615+
614616
ret = gp_config_get_string(ctx, "gssproxy", "syslog_status", &tmpstr);
615617
if (ret == 0)
616618
gp_syslog_status = gp_boolean_is_true(tmpstr);
@@ -640,7 +642,6 @@ int load_config(struct gp_config *cfg)
640642
if (ret != 0) {
641643
GPERROR("Error reading configuration %d: %s", ret, gp_strerror(ret));
642644
}
643-
gp_debug_toggle(tmp_dbg_lvl);
644645
gp_config_close(ctx);
645646
safefree(ctx);
646647
return ret;

0 commit comments

Comments
 (0)