disable trace on log messages, improve error handling