summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2016-03-21 17:24:04 -0500
committerTony Asleson <tasleson@redhat.com>2016-03-21 17:28:51 -0500
commit16b127259761da212bc7ba6ab3c95b42fe0fe276 (patch)
tree2beee9bfd2e59d8b26fc67f767b1e0c339ee3e2c
parentca28ea88bedbc0ecb64e5579c1b3076b9a7cd533 (diff)
downloadlvm2-16b127259761da212bc7ba6ab3c95b42fe0fe276.tar.gz
lvmdbusd: Change print statements to log_error
Should not be using print() in the service code. Signed-off-by: Tony Asleson <tasleson@redhat.com>
-rwxr-xr-xdaemons/lvmdbusd/lvmdb.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/daemons/lvmdbusd/lvmdb.py b/daemons/lvmdbusd/lvmdb.py
index be3786892..d14ae3b7f 100755
--- a/daemons/lvmdbusd/lvmdb.py
+++ b/daemons/lvmdbusd/lvmdb.py
@@ -16,7 +16,7 @@ import os
try:
from . import cmdhandler
- from .utils import log_debug
+ from .utils import log_debug, log_error
except SystemError:
import cmdhandler
from utils import log_debug
@@ -337,13 +337,13 @@ class DataStore(object):
rc.append(self.lvs[self.lv_full_name_to_uuid[s]])
return rc
except KeyError as ke:
- print("Key %s not found!" % (str(lv_names)))
- print("lv name to uuid lookup")
+ log_error("Key %s not found!" % (str(lv_names)))
+ log_error("lv name to uuid lookup")
for keys in sorted(self.lv_full_name_to_uuid.keys()):
- print("%s" % (keys))
- print("lvs entries by uuid")
+ log_error("%s" % (keys))
+ log_error("lvs entries by uuid")
for keys in sorted(self.lvs.keys()):
- print("%s" % (keys))
+ log_error("%s" % (keys))
raise ke
def pv_pe_segments(self, pv_uuid):