Skip to content

Commit

Permalink
Simplified import
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Mar 11, 2024
1 parent 28dcf9c commit b489d20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/logging_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,17 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

import importlib
import logging
import os

from ovos_utils.log import LOG as ovos_default_logger

combo_lock_logger = logging.getLogger("combo_lock")
combo_lock_logger.disabled = True


def _init_app_logger():
logger = getattr(importlib.import_module("ovos_utils"), "LOG")
logger = ovos_default_logger
logger.name = os.environ.get("LOG_NAME", "klat_server_log")
logger.base_path = os.environ.get("LOG_BASE_PATH", ".")
logger.init(
Expand Down

0 comments on commit b489d20

Please sign in to comment.