Remove logging configuration.

This commit is contained in:
Adam Coddington 2015-05-17 23:14:11 -07:00
parent d056c9b708
commit 3d795fab1b

View file

@ -6,7 +6,6 @@ command line scripts, and related.
"""
from __future__ import print_function
import argparse
import logging
import pickle
import sys
@ -151,20 +150,11 @@ def main(args=None):
default="",
help="Save device data to a file in the current directory.",
)
parser.add_argument(
'--loglevel',
default='INFO',
help='Increase logging verbosity by specifying DEBUG'
)
command_line = parser.parse_args(args)
if not command_line.username or not command_line.password:
parser.error('No username or password supplied')
logging.basicConfig(
level=logging.getLevelName(command_line.loglevel)
)
from pyicloud import PyiCloudService
try:
api = PyiCloudService(