fix for passing error objects to logs