Skip to content

Commit

Permalink
Merge pull request #45 from pkaleta/master
Browse files Browse the repository at this point in the history
Move logging configuration to main().
  • Loading branch information
Bachmann1234 committed Mar 30, 2016
2 parents ebc4239 + 7341031 commit f86e33c
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 f86e33c

Please sign in to comment.