Check log level before calling put