From 644bf8e6bcdfe1071b9f401bc75d821b912194a9 Mon Sep 17 00:00:00 2001 From: svalouch Date: Fri, 6 Mar 2020 17:52:36 +0100 Subject: [PATCH] unify log prefix, use simplezfs everywhere --- src/simplezfs/zfs_native.py | 2 +- src/simplezfs/zpool_cli.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simplezfs/zfs_native.py b/src/simplezfs/zfs_native.py index 703af2a..aeb830b 100644 --- a/src/simplezfs/zfs_native.py +++ b/src/simplezfs/zfs_native.py @@ -9,7 +9,7 @@ import logging from .types import Property from .zfs import ZFS -log = logging.getLogger('zfs.zfs_native') +log = logging.getLogger('simplezfs.zfs_native') class ZFSNative(ZFS): diff --git a/src/simplezfs/zpool_cli.py b/src/simplezfs/zpool_cli.py index dba087d..cea47ff 100644 --- a/src/simplezfs/zpool_cli.py +++ b/src/simplezfs/zpool_cli.py @@ -10,7 +10,7 @@ from typing import Any, Dict, Optional from .types import ZPoolHealth from .zpool import ZPool -log = logging.getLogger('zfs.zpool_cli') +log = logging.getLogger('simplezfs.zpool_cli') class ZPoolCli(ZPool): @@ -50,7 +50,7 @@ class ZPoolCli(ZPool): Parses the output of ``zpool list -vPHp`` and emits a list of pool structures. ''' - plog = logging.getLogger('zfs.zpool_cli.zpool_list_parser') + plog = logging.getLogger('simplezfs.zpool_cli.zpool_list_parser') output = dict() # type: Dict[str, Dict] # holds the current pool name