fix log streaming based on run type