8000 Move logging.basicConfig to main function · zyq001/python-readability@f0ff9b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f0ff9b2

Browse files
committed
Move logging.basicConfig to main function
1 parent e2bc1ea commit f0ff9b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readability/readability.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from .htmls import shorten_title
1818

1919

20-
logging.basicConfig(level=logging.INFO)
2120
log = logging.getLogger()
2221

2322

@@ -597,6 +596,8 @@ def __getattr__(self, tag):
597596

598597

599598
def main():
599+
logging.basicConfig(level=logging.INFO)
600+
600601
from optparse import OptionParser
601602
parser = OptionParser(usage="%prog: [options] [file]")
602603
parser.add_option('-v', '--verbose', action='store_true')

0 commit comments

Comments
 (0)
0