Skip to content

Commit

Permalink
Fix loglevel pr (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
VipulMascarenhas authored Jan 10, 2025
2 parents ac68124 + 5f670c5 commit fb27242
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ads/aqua/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2024 Oracle and/or its affiliates.
# Copyright (c) 2024, 2025 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/


Expand All @@ -19,6 +18,7 @@ def get_logger_level():
level = os.environ.get(ENV_VAR_LOG_LEVEL, "INFO").upper()
return level


logger = getLogger(__name__)
logger.setLevel(get_logger_level())

Expand All @@ -28,7 +28,6 @@ def set_log_level(log_level: str):

log_level = log_level.upper()
logger.setLevel(log_level.upper())
logger.handlers[0].setLevel(log_level)


if OCI_RESOURCE_PRINCIPAL_VERSION:
Expand Down

0 comments on commit fb27242

Please sign in to comment.