add logging to output errors to stdout
Merge pull request #1455 from cglewis/master

add logging to output errors to stdout