Update backend/src/logging_config.py
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Run testing on the backend code / Build (pull_request) Has been cancelled
				
			
		
			
				
	
				Run linting on the backend code / Build (pull_request) Has been cancelled
				
			
		
			
				
	
				Build and deploy the backend to staging / Deploy to staging (pull_request) Has been cancelled
				
			
		
			
				
	
				Build and deploy the backend to staging / Build and push image (pull_request) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Run testing on the backend code / Build (pull_request) Has been cancelled
				
			Run linting on the backend code / Build (pull_request) Has been cancelled
				
			Build and deploy the backend to staging / Deploy to staging (pull_request) Has been cancelled
				
			Build and deploy the backend to staging / Build and push image (pull_request) Has been cancelled
				
			This commit is contained in:
		| @@ -29,7 +29,7 @@ def configure_logging(): | |||||||
|  |  | ||||||
|         logger.info(f"Logging to Loki at {loki_url} with {loki_handler.labels} and {is_debug=}") |         logger.info(f"Logging to Loki at {loki_url} with {loki_handler.labels} and {is_debug=}") | ||||||
|         logging_handlers = [loki_handler, logging.StreamHandler()] |         logging_handlers = [loki_handler, logging.StreamHandler()] | ||||||
|         logging_level = logging.DEBUG if is_debug else logging.INFO |         logging_level = logging.DEBUG | ||||||
|         # silence the chatty logs loki generates itself |         # silence the chatty logs loki generates itself | ||||||
|         logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING) |         logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING) | ||||||
|         # no need for time since it's added by loki or can be shown in kube logs |         # no need for time since it's added by loki or can be shown in kube logs | ||||||
| @@ -39,7 +39,7 @@ def configure_logging(): | |||||||
|         # if we are in a debug (local) session, set verbose and rich logging |         # if we are in a debug (local) session, set verbose and rich logging | ||||||
|         from rich.logging import RichHandler |         from rich.logging import RichHandler | ||||||
|         logging_handlers = [RichHandler()] |         logging_handlers = [RichHandler()] | ||||||
|         logging_level = logging.DEBUG if is_debug else logging.INFO |         logging_level = logging.DEBUG | ||||||
|         logging_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' |         logging_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user