RefactorLog: Log error instead of printing the stacktrace