Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Shuts gmusicapi logs down by using only the local logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Sep 3, 2019
1 parent 0e5a06e commit 1e3d63d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google_music_manager_downloader/__init__.py
Expand Up @@ -3,4 +3,4 @@
"""

__all__ = ['download']
__version__ = '1.3.0'
__version__ = '1.3.1'
6 changes: 5 additions & 1 deletion google_music_manager_downloader/download.py
Expand Up @@ -17,8 +17,12 @@ def download(
oauth: str = os.environ['HOME'] + "/oauth",
device_id: str = __DEFAULT_MAC__
) -> None:
logging.basicConfig(level=logging.INFO)
handler = logging.StreamHandler()
handler.setLevel(logging.DEBUG)
handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.addHandler(handler)
logger.info("Init Daemon - Press Ctrl+C to quit")
api = Musicmanager()
if not api.login(oauth, device_id):
Expand Down

0 comments on commit 1e3d63d

Please sign in to comment.