Skip to content

Commit

Permalink
Move logging initialization to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachmann1234 committed Feb 11, 2016
1 parent a03b74b commit 433161a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diff_cover/tool.py
Expand Up @@ -4,6 +4,7 @@
from __future__ import unicode_literals

import argparse
import logging
import os
import sys
from xml.etree import cElementTree
Expand Down Expand Up @@ -44,8 +45,6 @@
IGNORE_UNSTAGED_HELP = "Ignores unstaged changes"


import logging
logging.basicConfig(format='%(message)s')
LOGGER = logging.getLogger(__name__)


Expand Down Expand Up @@ -348,4 +347,5 @@ 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 433161a

Please sign in to comment.