From 4114b3fd6e5dad025613454a383c3884838eb154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D1=80=D0=B5=D0=BD=D0=B1=D0=B5=D1=80=D0=B3=20?= =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=BA=20=28Dell=20laptop=29?= Date: Tue, 3 Jul 2018 16:07:29 +0500 Subject: [PATCH] Added debug logging --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 62cdab3..137bc3a 100755 --- a/main.py +++ b/main.py @@ -130,6 +130,7 @@ def get_osd_location(cluster, osd): result = json.loads(outbuf.decode('utf-8')) result = result['crush_location'] result['osd'] = osd + log.debug('Location of OSD %r is %r.', osd, result) return result @@ -147,7 +148,9 @@ def get_obj_acting_primary(cluster, pool, name): if ret: raise RuntimeError(outs) result = json.loads(outbuf.decode('utf-8')) - return result['acting_primary'] + acting_primary = result['acting_primary'] + log.debug('Acting primary OSD %r (for object %r).', acting_primary, name) + return acting_primary def get_description(cluster, location):