Ignore logs if the profiler is disabled.