commit | e17c73a5d0a2eb229743729b7b098c8631f90f79 | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <sapan@opennetworking.org> | Wed Jul 26 23:44:34 2017 -0400 |
committer | Sapan Bhatia <sapan@opennetworking.org> | Thu Jul 27 00:17:35 2017 -0400 |
tree | 5583a1586e7eabb96fc1d62678c5cbcd404f61a5 | |
parent | b0d02b06f86b37e34d2c849c5e93a84cc5b9775e [diff] |
CORD-1607: Report real model name in ELK Stack logs Change-Id: Ib95cca017494afa19fcee91950d91baca03921d1
diff --git a/xos/xos_client/xosapi/orm.py b/xos/xos_client/xosapi/orm.py index 84a326f..f5c5f2c 100644 --- a/xos/xos_client/xosapi/orm.py +++ b/xos/xos_client/xosapi/orm.py
@@ -224,7 +224,7 @@ def tologdict(self): try: - d = {'model_name':self.__class__.__name__, 'pk': self.pk} + d = {'model_name':self._wrapped_class.__class__.__name__, 'pk': self.pk} except: d = {}