[merge] trace improvements
- shorter error messages on exceptions
- shorter display of status and time in selftest output
- send debug output direct to file to reduce cost of going
through Python logging
- always send exception tracebacks to trace file