summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-12-28 05:49:53 +0800
committerKeuin <[email protected]>2021-12-28 05:49:53 +0800
commitc1d81a863cea3d20e1baca9672c39196cfbc8924 (patch)
treeeb57db889ead8eace953b58a43cf090c801d2e1f
parentad84112014b7eb7a8664c5c6f376e736e2ec89c6 (diff)
Bugfix: wrong logging statement.
-rw-r--r--netmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netmon.c b/netmon.c
index f3104fd..206a85f 100644
--- a/netmon.c
+++ b/netmon.c
@@ -29,7 +29,7 @@ void daemonize() {
if (pid > 0) {
char buf[32];
sprintf(buf, "Child process: %d", pid);
- log_init(buf);
+ log_info(logger, buf);
exit(0); // exit parent process
}
// unmask the file mode