diff options
-rw-r--r-- | src/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); |