mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fsnotifier self diagnostics
This commit is contained in:
Binary file not shown.
@@ -145,7 +145,13 @@ void userlog(int priority, const char* format, ...) {
|
||||
vsyslog(priority, format, ap);
|
||||
|
||||
if (self_test) {
|
||||
printf("fsnotifier[%d]: ", getpid());
|
||||
const char* level = "debug";
|
||||
switch (priority) {
|
||||
case LOG_ERR: level = "error"; break;
|
||||
case LOG_WARNING: level = " warn"; break;
|
||||
case LOG_INFO: level = " info"; break;
|
||||
}
|
||||
printf("fsnotifier[%d] %s: ", getpid(), level);
|
||||
vprintf(format, ap);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user