use our own error log method in log_exception