You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print @date('d.m.Y-H:i').' - WARNING - There is already an instance of server.php running with pid ' . $pid . '.' . "\n";
40
+
if($conf['log_priority'] <= LOGLEVEL_WARN) print @date('d.m.Y-H:i').' - WARNING - There is already an instance of server.php running with pid ' . $pid . '.' . "\n";
41
41
exit;
42
42
}
43
43
}
44
-
print @date('d.m.Y-H:i').' - WARNING - There is already a lockfile set, but no process running with this pid (' . $pid . '). Continuing.' . "\n";
44
+
if($conf['log_priority'] <= LOGLEVEL_WARN) print @date('d.m.Y-H:i').' - WARNING - There is already a lockfile set, but no process running with this pid (' . $pid . '). Continuing.' . "\n";
45
45
}
46
46
47
47
// Set Lockfile
@@ -90,15 +90,15 @@
90
90
if(class_exists($class_name, false)) {
91
91
$cronjob = new$class_name();
92
92
if(get_parent_class($cronjob) !== 'cronjob') {
93
-
print'Invalid class ' . $class_name . ' not extending class cronjob (' . get_parent_class($cronjob) . ')!' . "\n";
93
+
if($conf['log_priority'] <= LOGLEVEL_WARN) print'Invalid class ' . $class_name . ' not extending class cronjob (' . get_parent_class($cronjob) . ')!' . "\n";
94
94
unset($cronjob);
95
95
continue;
96
96
}
97
-
print'Included ' . $class_name . ' from ' . $path . '/' . $f . ' -> will now run job.' . "\n";
97
+
if($conf['log_priority'] <= LOGLEVEL_DEBUG) print'Included ' . $class_name . ' from ' . $path . '/' . $f . ' -> will now run job.' . "\n";
0 commit comments