Skip to content

Commit

Permalink
Fix the log message when error is detected
Browse files Browse the repository at this point in the history
Change-Id: I042b7ee5c2cfb34e33fe1fc84a1a351df1144940
Closes-Bug: 1669206
  • Loading branch information
Sachin Bansal committed Mar 17, 2017
1 parent 250837d commit ba222ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/schema-transformer/config_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def reinit(cls):
cls.locate(gsc.uuid, gsc)
except Exception as e:
cls._logger.error("Error in reinit for %s %s: %s" % (
cls.obj_type, obj.get_fq_name_str(), str(e)))
cls.obj_type, gsc.get_fq_name_str(), str(e)))
# end reinit

def __init__(self, uuid, obj):
Expand Down
6 changes: 3 additions & 3 deletions src/config/schema-transformer/to_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def reinit(self):
sg.update_policy_entries()
except Exception as e:
self.config_log("Error in updating SG policies %s: %s" % (
sg.get_fq_name_str(), str(e)), SandeshLevel.SYS_ERR)
sg.name, str(e)), SandeshLevel.SYS_ERR)

gevent.sleep(0.001)
RouteTargetST.reinit()
Expand Down Expand Up @@ -516,7 +516,7 @@ def reinit(self):
vn_obj.evaluate()
except Exception as e:
self.config_log("Error in reinit evaluate virtual network %s: %s" % (
vn_obj.get_fq_name_str(), str(e)), SandeshLevel.SYS_ERR)
vn_obj.name, str(e)), SandeshLevel.SYS_ERR)
for cls in DBBaseST.get_obj_type_map().values():
if cls is VirtualNetworkST:
continue
Expand All @@ -525,7 +525,7 @@ def reinit(self):
obj.evaluate()
except Exception as e:
self.config_log("Error in reinit evaluate %s %s: %s" % (
cls.obj_type, obj.get_fq_name_str(), str(e)), SandeshLevel.SYS_ERR)
cls.obj_type, obj.name, str(e)), SandeshLevel.SYS_ERR)
self.process_stale_objects()
# end reinit

Expand Down

0 comments on commit ba222ff

Please sign in to comment.