Skip to content

Commit

Permalink
Move logging configuration to main().
Browse files Browse the repository at this point in the history
  • Loading branch information
pkaleta committed Mar 29, 2016
1 parent ebc4239 commit 7341031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion diff_cover/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def main(argv=None, directory=None):
1 is an error
0 is successful run
"""
logging.basicConfig(format='%(message)s')

argv = argv or sys.argv
# Init the path tool to work with the specified directory,
# or the current directory if it isn't set.
Expand Down Expand Up @@ -348,5 +350,4 @@ def main(argv=None, directory=None):
assert False, 'Expect diff-cover or diff-quality in {0}'.format(name)

if __name__ == "__main__":
logging.basicConfig(format='%(message)s')
exit(main())

0 comments on commit 7341031

Please sign in to comment.