Skip to content

log.debug files before parsing - #12

Merged
bbinet merged 1 commit into
bbinet:masterfrom
robnagler:robnagler-debug-files
May 19, 2016
Merged

bbinet merged 1 commit into
bbinet:masterfrom
robnagler:robnagler-debug-files

Conversation

@robnagler

Copy link
Copy Markdown

When an exception occurs during parsing, the output is uninformative, e.g.

- Failed to load ext_pillar stack: 'dict object' has no attribute 'radia'

You don't know which file failed to parse. Added log.debug before parsing so logs look like:

[DEBUG   ] LazyLoaded stack.ext_pillar
[DEBUG   ] Config: /home/vagrant/src/radiasoft/salt-conf/srv/pillar/top.cfg
[DEBUG   ] YAML: basedir=/home/vagrant/src/radiasoft/salt-conf/srv/pillar, path=channels/dev.yml
[DEBUG   ] YAML: basedir=/home/vagrant/src/radiasoft/salt-conf/srv/pillar, path=radia.yml
[DEBUG   ] YAML: basedir=/home/vagrant/src/radiasoft/salt-conf/srv/pillar, path=jupyterhub/base.yml
[CRITICAL] Pillar render error: Failed to load ext_pillar stack: 'dict object' has no attribute 'radia'

@bbinet
bbinet merged commit cd41206 into bbinet:master May 19, 2016
@bbinet

bbinet commented May 19, 2016

Copy link
Copy Markdown
Owner

Actually, this is useful, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants