Use log.err instead of log.msg

As suggested by @drawks, refs #154.