]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-crash: use "ceph-crash" as logger name
authorKefu Chai <kchai@redhat.com>
Fri, 18 Oct 2019 09:47:12 +0000 (17:47 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 18 Oct 2019 09:47:14 +0000 (17:47 +0800)
"ceph-crash" is a better name than "__main__", we don't use ceph-crash
as a module, so its `__name__` is always `__main__`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-crash.in

index c0a2f0afcc248560571a3e4f828d88e4b5b9c056..21f83c81defe9699fcedc3b752709e826f4a8c3c 100755 (executable)
@@ -11,7 +11,7 @@ import sys
 import time
 
 logging.basicConfig(level=logging.INFO)
-log = logging.getLogger(__name__)
+log = logging.getLogger('ceph-crash')
 
 auth_names = ['client.crash.%s' % socket.gethostname(),
               'client.crash',