summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 239e0da..26937e1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -262,12 +262,6 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- /*
- * Setting up logging
- */
- if (init_log() == -1)
- exit(EXIT_FAILURE);
-
if (type == REQUEST) {
if (do_local_request(action, &conf.local, local_step) == -1) {
fprintf(stderr, "can't connect: is conntrackd "
@@ -278,6 +272,12 @@ int main(int argc, char *argv[])
}
/*
+ * Setting up logging
+ */
+ if (init_log() == -1)
+ exit(EXIT_FAILURE);
+
+ /*
* lock file
*/
ret = open(CONFIG(lockfile), O_CREAT | O_EXCL | O_TRUNC, 0600);