mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +00:00
added warnings
This commit is contained in:
parent
9d449f5001
commit
84b513707b
3
lsyncd.c
3
lsyncd.c
@ -195,7 +195,7 @@ add_logcat(const char *name, int priority)
|
||||
return true;
|
||||
}
|
||||
if (!strcmp("scarce", name)) {
|
||||
settings.log_level = LOG_ERR;
|
||||
settings.log_level = LOG_WARNING;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1696,6 +1696,7 @@ main1(int argc, char *argv[])
|
||||
/* prepares logging early */
|
||||
int i = 1;
|
||||
add_logcat("Normal", LOG_NOTICE);
|
||||
add_logcat("Warn", LOG_WARNING);
|
||||
add_logcat("Error", LOG_ERR);
|
||||
while (i < argc) {
|
||||
if (strcmp(argv[i], "-log") && strcmp(argv[i], "--log")) {
|
||||
|
Loading…
Reference in New Issue
Block a user