Improved logging
This commit is contained in:
		
					parent
					
						
							
								f8230badba
							
						
					
				
			
			
				commit
				
					
						de609e49f0
					
				
			
		
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -494,7 +494,11 @@ echo "1";
 | 
			
		|||
			if ($errorno == 2006) {
 | 
			
		||||
				if (self::$in_retrial || !self::reconnect()) {
 | 
			
		||||
					// It doesn't make sense to continue when the database connection was lost
 | 
			
		||||
					logger('Giving up because of database error '.$errorno.': '.$error);
 | 
			
		||||
					if (self::$in_retrial) {
 | 
			
		||||
						logger('Giving up retrial because of database error '.$errorno.': '.$error);
 | 
			
		||||
					} else {
 | 
			
		||||
						logger("Couldn't reconnect after database error ".$errorno.': '.$error);
 | 
			
		||||
					}
 | 
			
		||||
					exit(1);
 | 
			
		||||
				} else {
 | 
			
		||||
					// We try it again
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue