trackupstream: fix gathering of log messages and prevent dying