Skip to content
Snippets Groups Projects
Commit 79df0c95 authored by ale's avatar ale
Browse files

Add a --verbose option to show webdav actions

parent 229ec62e
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,9 @@ def main():
parser.add_argument(
'--force', action='store_true',
help='always overwrite remote files')
parser.add_argument(
'--verbose', action='store_true',
help='enable WebDAV logging')
parser.add_argument(
'srcdir',
help='local path')
......@@ -36,7 +39,7 @@ def main():
parsed_url = urlparse(args.url)
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.DEBUG if args.verbose else logging.ERROR)
logging.getLogger('urllib3.connectionpool').setLevel(logging.ERROR)
client = Client({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment