From: Kefu Chai Date: Fri, 18 Oct 2019 09:47:12 +0000 (+0800) Subject: ceph-crash: use "ceph-crash" as logger name X-Git-Tag: v15.1.0~1221^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7552cd790f98e2bee56b8a697b71db4210144121;p=ceph.git ceph-crash: use "ceph-crash" as logger name "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 --- diff --git a/src/ceph-crash.in b/src/ceph-crash.in index c0a2f0afcc24..21f83c81defe 100755 --- a/src/ceph-crash.in +++ b/src/ceph-crash.in @@ -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',