Skip to content

Commit

Permalink
[UX] Suppress azure logs when opening ports (#3084)
Browse files Browse the repository at this point in the history
* fux

* lint
  • Loading branch information
cblmemo authored Feb 6, 2024
1 parent cf49028 commit 872d969
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sky/provision/azure/instance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Azure instance provisioning."""
import logging
from typing import Any, Callable, Dict, List, Optional

from sky import sky_logging
Expand All @@ -8,6 +9,11 @@

logger = sky_logging.init_logger(__name__)

# Suppress noisy logs from Azure SDK. Reference:
# https://github.com/Azure/azure-sdk-for-python/issues/9422
azure_logger = logging.getLogger('azure')
azure_logger.setLevel(logging.WARNING)

# Tag uniquely identifying all nodes of a cluster
TAG_RAY_CLUSTER_NAME = 'ray-cluster-name'
TAG_RAY_NODE_KIND = 'ray-node-type'
Expand Down

0 comments on commit 872d969

Please sign in to comment.