Record batch PID in log.