mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
Add _w() for developer warning logs
Adjust debug levels slightly and add _w() macro for LOG_WARNING, useful when having /dev/kmsg as backend. The latter outputs any log <= LOG_ERR to console as well. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
74eb2bf4d2
commit
88d8ab67c9
2 files changed
+4
-3
No files matched your search
@@ -268,7 +268,7 @@ static int service_start(svc_t *svc)
|
||||
if (strlen(arg) < (sizeof(buf) - strlen(buf)))
|
||||
strcat(buf, arg);
|
||||
}
|
||||
_e("Starting %s: %s", svc->cmd, buf);
|
||||
_d("Starting %s: %s", svc->cmd, buf);
|
||||
}
|
||||
|
||||
svc->pid = pid;
|
||||
@@ -548,7 +548,7 @@ int service_register(int type, char *line, time_t mtime, char *username)
|
||||
|
||||
plugin = plugin_find(ps);
|
||||
if (!plugin || !plugin->inetd.cmd) {
|
||||
_e("Inetd service %s has no internal plugin, skipping.", service);
|
||||
_w("Inetd service %s has no internal plugin, skipping.", service);
|
||||
return errno = ENOENT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user