I move this fromm _log to here some time ago. The reason is that if you call log(...), something is written to the log file even tough logging could be disabled. So the log function always logs, but the request decides if it should call the function.