add log_level in production, deprecation warning fix