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

(cherry picked from commit 132c30d)