code: function cb(err) {
          if (callback) {
              if (err) return callback(err);
              callback(null, rec);
          }
          callback = null;
          if (!err) {
              that.emit('logged', rec);
          }
      }
docs: Respond to the callback