From dcb85398f505481db3a33d35049584b82b1397b9 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sat, 17 Jul 2021 23:10:13 +0800
Subject: [PATCH] update booster code for logger system and makefile
---
booster/util_proc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/booster/util_proc.c b/booster/util_proc.c
index 700bb65..9474851 100644
--- a/booster/util_proc.c
+++ b/booster/util_proc.c
@@ -209,7 +209,7 @@
{
if (mkdir(ipc_dir, mode) < 0)
{
- log_fatal("cannot create %s: %s\n", ipc_dir, strerror(errno));
+ log_err("cannot create %s: %s\n", ipc_dir, strerror(errno));
return -1;
}
@@ -229,7 +229,7 @@
}
else
{
- log_fatal("cannot create %s: %s\n", pid_file, strerror(errno));
+ log_err("cannot create %s: %s\n", pid_file, strerror(errno));
return -1;
}
@@ -257,7 +257,7 @@
}
else
{
- log_fatal("Can't open PID record file %s: %s\n", pid_file, strerror(errno));
+ log_err("Can't open PID record file %s: %s\n", pid_file, strerror(errno));
return -1;
}
return pid;
@@ -360,7 +360,7 @@
if (record_daemon_pid(pid_file) < 0)
{
- log_fatal("Record PID to file \"%s\" failure.\n", pid_file);
+ log_err("Record PID to file \"%s\" failure.\n", pid_file);
return -2;
}
--
Gitblit v1.9.1