fixing bug with too big error message flowing to syslog