summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/blabouncer.c b/blabouncer.c
index 851df7a..e0c9b21 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -2558,13 +2558,6 @@ int main(int argc, char *argv[]) {
}
}
- // Is debugging enabled?
- debug = getconfint("debug", settings.conffile);
- if (!snprintf(debugpath, PATH_MAX, "%s/debug.txt", settings.basedir)) {
- fprintf(stderr, "Error while preparing debug path location!\n");
- exit(1);
- }
-
// Make sure the base directory exists
struct stat st = {0};
if (stat(settings.basedir, &st) == -1) {
@@ -2582,6 +2575,13 @@ int main(int argc, char *argv[]) {
// Is replay logging enabled?
settings.replaylogging = getconfint("replaylogging", settings.conffile);
+ // Is debugging enabled?
+ debug = getconfint("debug", settings.conffile);
+ if (!snprintf(debugpath, PATH_MAX, "%s/debug.txt", settings.basedir)) {
+ fprintf(stderr, "Error while preparing debug path location!\n");
+ exit(1);
+ }
+
// Prepare the debug file
// (Keep DEBUGFILESKEEP number of debug files around for past debugging)
if (DEBUGFILESKEEP > 0) {