+rem #3504: Toned down error logging and made loglevel configurable
(cherry picked from commit 132c30d)
Merge pull request #1687 from drewhk/wip-3504-backport-drewhk

+rem #3504: Toned down error logging and made loglevel configurable (backport)