Logging data validation exceptions in NBI charm 66/9966/1
authorsousaedu <eduardo.sousa@canonical.com>
Wed, 11 Nov 2020 17:06:31 +0000 (17:06 +0000)
committersousaedu <eduardo.sousa@canonical.com>
Wed, 11 Nov 2020 17:06:31 +0000 (17:06 +0000)
Change-Id: Ie818fd1c7092b64b61ddac5184c5d817a7880f46
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
installers/charm/nbi/src/charm.py

index f0347e2..7ef9d59 100755 (executable)
@@ -367,6 +367,7 @@ class NbiCharm(CharmBase):
                 self.port,
             )
         except ValidationError as exc:
+            LOGGER.exception("Config/Relation data validation error")
             self.unit.status = BlockedStatus(str(exc))
             return