Don't log if logging is disabled