dragonxd1 commited on
Commit
517ebff
·
verified ·
1 Parent(s): b3d2167

Update DragMusic/platforms/Youtube.py

Browse files
Files changed (1) hide show
  1. DragMusic/platforms/Youtube.py +7 -0
DragMusic/platforms/Youtube.py CHANGED
@@ -11,6 +11,13 @@ from youtubesearchpython.__future__ import VideosSearch
11
  from DragMusic.utils.database import is_on_off
12
  from DragMusic.utils.formatters import time_to_seconds
13
  import tempfile
 
 
 
 
 
 
 
14
 
15
  async def shell_cmd(cmd):
16
  proc = await asyncio.create_subprocess_shell(
 
11
  from DragMusic.utils.database import is_on_off
12
  from DragMusic.utils.formatters import time_to_seconds
13
  import tempfile
14
+ import logging
15
+
16
+ logging.basicConfig(
17
+ level=logging.INFO, # Change to DEBUG for even more detailed logs
18
+ format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
19
+ )
20
+ logger = logging.getLogger(__name__)
21
 
22
  async def shell_cmd(cmd):
23
  proc = await asyncio.create_subprocess_shell(