Fixing bug in my error logging code