main.js: fix regression in _logTrace