Fix the way errors are logged so that extra info is maintained by Bunyan