mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
suppress spotify cache warning messages
This commit is contained in:
@@ -6,6 +6,9 @@ import os
|
|||||||
|
|
||||||
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
||||||
|
|
||||||
|
# Suppress spotipy.cache_handler warnings about not being able to write cache
|
||||||
|
logging.getLogger('spotipy.cache_handler').setLevel(logging.ERROR)
|
||||||
|
|
||||||
# Define paths relative to this file's location
|
# Define paths relative to this file's location
|
||||||
CONFIG_DIR = os.path.join(os.path.dirname(__file__), '..', 'config')
|
CONFIG_DIR = os.path.join(os.path.dirname(__file__), '..', 'config')
|
||||||
SECRETS_PATH = os.path.join(CONFIG_DIR, 'config_secrets.json')
|
SECRETS_PATH = os.path.join(CONFIG_DIR, 'config_secrets.json')
|
||||||
|
|||||||
Reference in New Issue
Block a user