Remove logging configuration.
This commit is contained in:
parent
d056c9b708
commit
3d795fab1b
1 changed files with 0 additions and 10 deletions
|
@ -6,7 +6,6 @@ command line scripts, and related.
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
|
||||||
import pickle
|
import pickle
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -151,20 +150,11 @@ def main(args=None):
|
||||||
default="",
|
default="",
|
||||||
help="Save device data to a file in the current directory.",
|
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)
|
command_line = parser.parse_args(args)
|
||||||
if not command_line.username or not command_line.password:
|
if not command_line.username or not command_line.password:
|
||||||
parser.error('No username or password supplied')
|
parser.error('No username or password supplied')
|
||||||
|
|
||||||
logging.basicConfig(
|
|
||||||
level=logging.getLevelName(command_line.loglevel)
|
|
||||||
)
|
|
||||||
|
|
||||||
from pyicloud import PyiCloudService
|
from pyicloud import PyiCloudService
|
||||||
try:
|
try:
|
||||||
api = PyiCloudService(
|
api = PyiCloudService(
|
||||||
|
|
Loading…
Reference in a new issue