Only write log message once if in production.