diff options
author | Chad Smith <chad.smith@canonical.com> | 2018-05-23 15:56:16 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2018-05-23 15:56:16 -0400 |
commit | 3b28bdc616f3e7f4d6b419629dc7b9efc3ae8d1e (patch) | |
tree | b0a5d6f097c07ec693b3ff95e6a791955c6302f0 /upstart/cloud-log-shutdown.conf | |
parent | aa4eeb80839382117e1813e396dc53aa634fd7ba (diff) | |
download | vyos-cloud-init-3b28bdc616f3e7f4d6b419629dc7b9efc3ae8d1e.tar.gz vyos-cloud-init-3b28bdc616f3e7f4d6b419629dc7b9efc3ae8d1e.zip |
yaml_load/schema: Add invalid line and column nums to error message
Yaml tracebacks are generally hard to read for average users. Add a bit of
logic to util.yaml_load and schema validation to look for
YAMLError.context_marker or problem_marker line and column counts.
No longer log the full exceeption traceback from the yaml_load error,
instead just LOG.warning for the specific error and point to the offending
line and column where the problem exists.
Diffstat (limited to 'upstart/cloud-log-shutdown.conf')
0 files changed, 0 insertions, 0 deletions