Fix error in logger code
Merge pull request #691 from dealnews/pr_puppet_log_errors

Fix error in logger code