Issue #1955; change loglevel through environment variable