Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ecederstrand committed Sep 17, 2017
1 parent 24fffba commit f7deeda
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4982,12 +4982,9 @@ def get_random_datetime_range(start_date=EWSDate(1990, 1, 1), end_date=EWSDate(2

if '-q' in sys.argv:
sys.argv.remove('-q')
loglevel = logging.WARNING
logging.basicConfig(level=loglevel)
logging.basicConfig(level=logging.WARNING)
else:
from exchangelib.util import PrettyXmlHandler
loglevel = logging.DEBUG
logging.basicConfig(level=loglevel, handlers=[PrettyXmlHandler()])
logging.basicConfig(level=logging.DEBUG, handlers=[PrettyXmlHandler()])

logging.getLogger('exchangelib').setLevel(loglevel)
unittest.main()

0 comments on commit f7deeda

Please sign in to comment.