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