Merge pull request #1682 from dhinus/patch-1

Logging should obey error_reporting() setting