Add error log
Fixing error log method