Skip to content

Commit 92a3e45

Browse files
author
wallisyan
committed
add NullHandler
1 parent 77220ed commit 92a3e45

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
__version__ = "2.12.1"
22

33
import logging
4-
logging.getLogger('aliyunsdkcore').addHandler(logging.NullHandler())
4+
5+
6+
class NullHandler(logging.Handler):
7+
def emit(self, record):
8+
pass
9+
10+
11+
logging.getLogger('aliyunsdkcore').addHandler(NullHandler())

0 commit comments

Comments
 (0)