Bugfix:  log messages not appearing in the right place.