Logging should obey error_reporting() setting

If the php error level is not included in the current
error_reporting() setting, we should not log it.

Also, the log_threshold check is redundant, it's
already taken care of by the write_log() method.
1 file changed