mirror of
				https://github.com/ComputerScienceHouse/proxstar.git
				synced 2025-03-09 15:40:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			372 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			372 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import os
 | |
| 
 | |
| import sentry_sdk
 | |
| from sentry_sdk.integrations.rq import RqIntegration
 | |
| from sentry_sdk.integrations.redis import RedisIntegration
 | |
| 
 | |
| if os.path.exists('config_local.py'):
 | |
|     import config_local as config
 | |
| else:
 | |
|     import config
 | |
| 
 | |
| sentry_sdk.init(
 | |
|     config.SENTRY_DSN,
 | |
|     integrations=[RqIntegration(), RedisIntegration()],
 | |
|     environment=config.SENTRY_ENV,
 | |
| )
 |