aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 25e5503c7..b533a3991 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -181,9 +181,7 @@ static void crondlog(unsigned level, const char *msg, va_list va)
181 * need not touch syslog_level 181 * need not touch syslog_level
182 * (they are ok with LOG_ERR default). 182 * (they are ok with LOG_ERR default).
183 */ 183 */
184 syslog_level = LOG_INFO; 184 bb_vinfo_msg(msg, va);
185 bb_verror_msg(msg, va, /* strerr: */ NULL);
186 syslog_level = LOG_ERR;
187 } 185 }
188} 186}
189 187
@@ -1108,7 +1106,7 @@ int crond_main(int argc UNUSED_PARAM, char **argv)
1108 process_cron_update_file(); 1106 process_cron_update_file();
1109 log5("wakeup dt=%ld", dt); 1107 log5("wakeup dt=%ld", dt);
1110 if (dt < -60 * 60 || dt > 60 * 60) { 1108 if (dt < -60 * 60 || dt > 60 * 60) {
1111 bb_error_msg("time disparity of %ld minutes detected", dt / 60); 1109 bb_info_msg("time disparity of %ld minutes detected", dt / 60);
1112 /* and we do not run any jobs in this case */ 1110 /* and we do not run any jobs in this case */
1113 } else if (dt > 0) { 1111 } else if (dt > 0) {
1114 /* Usual case: time advances forward, as expected */ 1112 /* Usual case: time advances forward, as expected */