Commit 32f151cd authored by Kristofer Pettersson's avatar Kristofer Pettersson

Bug#38066 Events log 'note' level messages by default in the error log

      
The event scheduler logged start-, stop-execution messages in the error log
on lowest log-warning level which would lead to very large log files in 
a short time.
    
This patch changes this behavior so that no start-/stop-messages are logged.
Log messages stating successful execution are also removed.


sql/event_scheduler.cc:
  * Removed logging for start-/stop-events.
  * Removed log-messages stating successful execution of events.
parent 7adf7154
...@@ -301,12 +301,6 @@ Event_worker_thread::run(THD *thd, Event_queue_element_for_exec *event) ...@@ -301,12 +301,6 @@ Event_worker_thread::run(THD *thd, Event_queue_element_for_exec *event)
goto end; goto end;
} }
sql_print_information("Event Scheduler: "
"[%s].[%s.%s] started in thread %lu.",
job_data.definer.str,
job_data.dbname.str, job_data.name.str,
thd->thread_id);
thd->enable_slow_log= TRUE; thd->enable_slow_log= TRUE;
res= job_data.execute(thd, event->dropped); res= job_data.execute(thd, event->dropped);
...@@ -318,13 +312,6 @@ Event_worker_thread::run(THD *thd, Event_queue_element_for_exec *event) ...@@ -318,13 +312,6 @@ Event_worker_thread::run(THD *thd, Event_queue_element_for_exec *event)
"[%s].[%s.%s] event execution failed.", "[%s].[%s.%s] event execution failed.",
job_data.definer.str, job_data.definer.str,
job_data.dbname.str, job_data.name.str); job_data.dbname.str, job_data.name.str);
else
sql_print_information("Event Scheduler: "
"[%s].[%s.%s] executed successfully in thread %lu.",
job_data.definer.str,
job_data.dbname.str, job_data.name.str,
thd->thread_id);
end: end:
DBUG_PRINT("info", ("Done with Event %s.%s", event->dbname.str, DBUG_PRINT("info", ("Done with Event %s.%s", event->dbname.str,
event->name.str)); event->name.str));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment