Bugfix: Error log handler