code: function(obj) {
      if (obj.command === 't') {
        state[obj.batch] = true;
      } else if (obj.command === 'd') {
        delete state[obj.batch];
      } else if (obj.command === 'changes_complete') {
        changesComplete = true;
      }
    }
docs: called with each line from the log file