Commit 1bf8b3aa authored by Ad Schellevis's avatar Ad Schellevis

(configd) report traceback, closes https://github.com/opnsense/core/issues/956

parent 29153230
......@@ -32,6 +32,7 @@ import os
import os.path
import syslog
import collections
import traceback
import copy
import codecs
import jinja2
......@@ -315,7 +316,8 @@ class Template(object):
except Exception as render_exception:
if wildcard_pos > -1:
# log failure, but proceed processing when doing a wildcard search
syslog.syslog(syslog.LOG_NOTICE, "error generating template %s" % template_name)
syslog.syslog(syslog.LOG_ERR, 'error generating template %s : %s' % (template_name,
traceback.format_exc()))
else:
raise render_exception
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment