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=refs%2Fpull%2F30989%2Fhead;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 c0a2f0afcc2..21f83c81def 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',