More fixes for googledrive

This commit is contained in:
Ozzieisaacs
2019-12-14 22:22:27 +01:00
parent e308a74dc2
commit 86fe970651
3 changed files with 15 additions and 2 deletions
+4
View File
@@ -47,6 +47,10 @@ CREDENTIALS = os.path.join(_CONFIG_DIR, 'gdrive_credentials')
CLIENT_SECRETS = os.path.join(_CONFIG_DIR, 'client_secrets.json')
log = logger.create()
if gdrive_support:
logger.get('googleapiclient.discovery_cache').setLevel(logger.logging.ERROR)
if not logger.is_debug_enabled():
logger.get('googleapiclient.discovery').setLevel(logger.logging.ERROR)
class Singleton: