Only log the cronjob execution if the debug mode is enabled (see #4729)