]> granicus.if.org Git - icinga2/commitdiff
Update log level for some messages.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 17 Dec 2013 13:26:48 +0000 (14:26 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 17 Dec 2013 13:26:48 +0000 (14:26 +0100)
Fixes #5357

lib/base/application.cpp

index 742384d5591b185a391f201697806dfbbae39261..67e8ad3d967ef4c5f54e11e18181b30dad2e2eb2 100644 (file)
@@ -121,9 +121,9 @@ void Application::SetResourceLimits(void)
        rl.rlim_max = rl.rlim_cur;
 
        if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
-               Log(LogCritical, "base", "Could not adjust resource limit for open file handles (RLIMIT_NOFILE)");
+               Log(LogDebug, "base", "Could not adjust resource limit for open file handles (RLIMIT_NOFILE)");
 #      else /* RLIMIT_NOFILE */
-       Log(LogCritical, "base", "System does not support adjusting the resource limit for open file handles (RLIMIT_NOFILE)");
+       Log(LogDebug, "base", "System does not support adjusting the resource limit for open file handles (RLIMIT_NOFILE)");
 #      endif /* RLIMIT_NOFILE */
 
 #      ifdef RLIMIT_NPROC
@@ -131,9 +131,9 @@ void Application::SetResourceLimits(void)
        rl.rlim_max = rl.rlim_cur;
 
        if (setrlimit(RLIMIT_NPROC, &rl) < 0)
-               Log(LogCritical, "base", "Could not adjust resource limit for number of processes (RLIMIT_NPROC)");
+               Log(LogDebug, "base", "Could not adjust resource limit for number of processes (RLIMIT_NPROC)");
 #      else /* RLIMIT_NPROC */
-       Log(LogCritical, "base", "System does not support adjusting the resource limit for number of processes (RLIMIT_NPROC)");
+       Log(LogDebug, "base", "System does not support adjusting the resource limit for number of processes (RLIMIT_NPROC)");
 #      endif /* RLIMIT_NPROC */
 #endif /* _WIN32 */
 }