Commit 3a91a528 authored by webchick's avatar webchick
Browse files

Issue #1934738 by sun: Fixed Exception: Serialization of 'Closure' is not...

Issue #1934738 by sun: Fixed Exception: Serialization of 'Closure' is not allowed in serialize() (line 154 of dblog.module).
parent 5b1e4d7c
......@@ -145,6 +145,9 @@ function _dblog_get_message_types() {
* Note: Some values may be truncated to meet database column size restrictions.
*/
function dblog_watchdog(array $log_entry) {
// Remove any backtraces since they may contain an unserializable variable.
unset($log_entry['variables']['backtrace']);
Database::getConnection('default', 'default')->insert('watchdog')
->fields(array(
'uid' => $log_entry['uid'],
......
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