diff --git a/ycdl/ytapi.py b/ycdl/ytapi.py index 2270068..e7f9dc1 100644 --- a/ycdl/ytapi.py +++ b/ycdl/ytapi.py @@ -1,9 +1,17 @@ import apiclient.discovery import datetime +import logging import isodate from . import helpers +logging.basicConfig(level=logging.DEBUG) +log = logging.getLogger(__name__) +logging.getLogger('googleapiclient.discovery').setLevel(logging.WARNING) +logging.getLogger('requests.packages.urllib3.connectionpool').setLevel(logging.WARNING) +logging.getLogger('requests.packages.urllib3.util.retry').setLevel(logging.WARNING) + + class VideoNotFound(Exception): pass