Skip to content

Commit 77e2cb5

Browse files
committed
Clean some log information - loop exceeded expected duration
1 parent d01b941 commit 77e2cb5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

alignak/daemon.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ def do_main_loop(self):
10181018
logger.info("pause duration: %.2f", self.pause_duration)
10191019

10201020
# For the maximum expected loop duration
1021+
self.maximum_loop_duration = 1.1 * self.maximum_loop_duration
10211022
logger.info("maximum expected loop duration: %.2f", self.maximum_loop_duration)
10221023

10231024
# Treatments before starting the main loop...
@@ -1113,11 +1114,11 @@ def do_main_loop(self):
11131114

11141115
pause = self.maximum_loop_duration - loop_duration
11151116
if loop_duration > self.maximum_loop_duration:
1116-
logger.warning("The %s %s loop exceeded the maximum expected loop duration (%.2f). "
1117-
"The last loop needed %.2f seconds to execute. "
1118-
"You should try to reduce the load on this %s.",
1119-
self.type, self.name, self.maximum_loop_duration,
1120-
loop_duration, self.type)
1117+
logger.info("The %s %s loop exceeded the maximum expected loop duration (%.2f). "
1118+
"The last loop needed %.2f seconds to execute. "
1119+
"You should try to reduce the load on this %s.",
1120+
self.type, self.name, self.maximum_loop_duration,
1121+
loop_duration, self.type)
11211122
# Make a very very short pause ...
11221123
pause = 0.01
11231124

0 commit comments

Comments
 (0)