Added more error logging when monitor scripts fail.

This commit is contained in:
Markus Makela
2015-06-10 06:09:42 +03:00
parent 528e69b726
commit 3fb1213dee
5 changed files with 55 additions and 14 deletions

View File

@ -343,7 +343,10 @@ int mon_parse_event_string(bool* events, size_t count,char* string)
{
event = mon_name_to_event(tok);
if(event == UNDEFINED_MONITOR_EVENT)
{
skygw_log_write(LE,"Error: Invalid event name %s",tok);
return -1;
}
events[event] = true;
tok = strtok_r(NULL,",| ",&saved);
}