mirror of
				https://github.com/KevinMidboe/ESP-Plant-Logger.git
				synced 2025-10-29 17:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			319 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			319 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from watercontent import watercontent
 | |
| from elasticLog import logger
 | |
| 
 | |
| def main():
 | |
|   print('main loaded')
 | |
|   try:
 | |
|     watercontent()
 | |
|   except Exception as e:
 | |
|     print(e)
 | |
|     logger('Error thrown', {'message': 'Error thrown', 'error': e})
 | |
|     print('starting again')
 | |
|     watercontent()
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|   main() |