From 1cb3fa80cf03bfa859b7ea766c1198d28112b83c Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 16 Apr 2018 00:29:43 +0200 Subject: [PATCH] Improve logger error --- datacenterlight/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datacenterlight/models.py b/datacenterlight/models.py index 5059e740..cddab497 100644 --- a/datacenterlight/models.py +++ b/datacenterlight/models.py @@ -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