Fix bgpmon.py sylog for exception handling. (#7030)

[201911] Fix bgpmon.py syslog message during exception handling.
This commit is contained in:
abdosi 2021-03-12 11:11:59 -08:00 committed by GitHub
parent c2806eb756
commit 9b553d905d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ def main():
try:
bgp_state_get = BgpStateGet()
except Exception as e:
syslog.syslog(syslog.LOG_ERR, "{}: error exit 1, reason {}".format(THIS_MODULE, str(e)))
syslog.syslog(syslog.LOG_ERR, "{}: error exit 1, reason {}".format("THIS_MODULE", str(e)))
exit(1)
# periodically obtain the new neighbor infomraton and update if necessary