Skip to content

Commit

Permalink
Improve error message again
Browse files Browse the repository at this point in the history
  • Loading branch information
jplitza committed Sep 27, 2019
1 parent dac9095 commit ae4318e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion birdagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import glob
import dateutil.parser
from datetime import datetime
import traceback
import pytz
from tzlocal import get_localzone

Expand Down Expand Up @@ -266,7 +267,7 @@ def getBGPState(self):
match.group(1))
except Exception as e:
print("WARNING: Unable to process \"%s\" as \"%s\" for protocol \"%s\": %s" %
(match.group(1), peerprop_name, bgp_proto, str(e)))
(match.group(1), peerprop_name, bgp_proto, traceback.format_exc(e)))

if self._re_birdcli_bgp_end.search(line):
bgp_proto = None
Expand Down

0 comments on commit ae4318e

Please sign in to comment.