mirror of
				https://github.com/SSLMate/certspotter.git
				synced 2025-07-03 10:47:17 +02:00 
			
		
		
		
	Set proper intervals for monitoring
This commit is contained in:
		
							parent
							
								
									1b4eb20c8b
								
							
						
					
					
						commit
						e044aae1df
					
				@ -21,8 +21,8 @@ import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
	reloadLogListIntervalMin = 3 * time.Second // TODO-3: use 30 * time.Minute
 | 
						reloadLogListIntervalMin = 30 * time.Minute
 | 
				
			||||||
	reloadLogListIntervalMax = 9 * time.Second // TODO-3: use 90 * time.Minute
 | 
						reloadLogListIntervalMax = 90 * time.Minute
 | 
				
			||||||
	healthCheckInterval      = 24 * time.Hour
 | 
						healthCheckInterval      = 24 * time.Hour
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -29,8 +29,7 @@ import (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
	maxGetEntriesSize = 1000
 | 
						maxGetEntriesSize = 1000
 | 
				
			||||||
	//monitorLogInterval = 5 * time.Minute // TODO-3
 | 
						monitorLogInterval = 5 * time.Minute
 | 
				
			||||||
	monitorLogInterval = 15 * time.Second
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func isFatalLogError(err error) bool {
 | 
					func isFatalLogError(err error) bool {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user