Skip to content

Commit 1aabdb3

Browse files
committed
Merge pull request buriy#67 from horva/fix-logging-config
Move logging.basicConfig to main function
2 parents e2bc1ea + f0ff9b2 commit 1aabdb3

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 .htmlsimportshorten_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
defmain():
599+
logging.basicConfig(level=logging.INFO)
600+
600601
fromoptparseimportOptionParser
601602
parser=OptionParser(usage="%prog: [options] [file]")
602603
parser.add_option('-v', '--verbose', action='store_true')

0 commit comments

Comments
(0)