Solved Error logging fails if method contains invalid string argument

This topic has been solved
D

digitalpoint

Guest
I won't dive too deep into the "why", but it's third-party classes that are out of my control (some WebSocket stuff). I noticed that when I explicitly tried to log an error message like so:
Code:

\XF::logError('some error', true);
...it wouldn't get logged.

Did some debugging and it turns out it was a MySQL error that was causing it on the trace_string column: MySQL query error [1366]: Incorrect string value: '\x81\x895\x81\x84\x89...' for column 'trace_string' at row 1#0...

Read more

Continue reading...