Set ytrss log level during flask launch.
This commit is contained in:
		
							parent
							
								
									8ac31562b7
								
							
						
					
					
						commit
						e4b769336b
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -58,6 +58,7 @@ def ycdl_flask_launch( | ||||||
| 
 | 
 | ||||||
|     youtube_core = ycdl.ytapi.Youtube(bot.get_youtube_key()) |     youtube_core = ycdl.ytapi.Youtube(bot.get_youtube_key()) | ||||||
|     backend.common.init_ycdldb(youtube_core, create=create, log_level=logging.DEBUG) |     backend.common.init_ycdldb(youtube_core, create=create, log_level=logging.DEBUG) | ||||||
|  |     ycdl.ytrss.log.setLevel(logging.DEBUG) | ||||||
| 
 | 
 | ||||||
|     if refresh_rate is not None: |     if refresh_rate is not None: | ||||||
|         backend.common.start_refresher_thread(refresh_rate) |         backend.common.start_refresher_thread(refresh_rate) | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ log = vlogging.getLogger(__name__) | ||||||
| session = requests.Session() | session = requests.Session() | ||||||
| 
 | 
 | ||||||
| def _get_user_videos(uid): | def _get_user_videos(uid): | ||||||
|     log.debug(f'Fetching RSS for {uid}.') |     log.info(f'Fetching RSS for {uid}.') | ||||||
|     url = f'https://www.youtube.com/feeds/videos.xml?channel_id={uid}' |     url = f'https://www.youtube.com/feeds/videos.xml?channel_id={uid}' | ||||||
|     response = session.get(url) |     response = session.get(url) | ||||||
|     response.raise_for_status() |     response.raise_for_status() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue