Improve logger error
This commit is contained in:
		
					parent
					
						
							
								896984ef1f
							
						
					
				
			
			
				commit
				
					
						1cb3fa80cf
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -52,7 +52,8 @@ class VMPricing(models.Model):
 | 
			
		|||
        except Exception as e:
 | 
			
		||||
            logger.error(
 | 
			
		||||
                "Error getting VMPricing with name {name}. "
 | 
			
		||||
                "Details: {details}".format(name=name, details=str(e))
 | 
			
		||||
                "Details: {details}. Attempting to return default"
 | 
			
		||||
                "pricing.".format(name=name, details=str(e))
 | 
			
		||||
            )
 | 
			
		||||
            pricing = VMPricing.get_default_pricing()
 | 
			
		||||
        return pricing
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue