slightly less debugging when adding jobs
This commit is contained in:
@@ -28,7 +28,6 @@ export default class Job extends events.EventEmitter {
|
|||||||
|
|
||||||
this.ready = createIndex(client, index)
|
this.ready = createIndex(client, index)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.debug(`Adding job to index ${this.index}`);
|
|
||||||
return this.client.index({
|
return this.client.index({
|
||||||
index: this.index,
|
index: this.index,
|
||||||
type: this.type,
|
type: this.type,
|
||||||
@@ -49,7 +48,7 @@ export default class Job extends events.EventEmitter {
|
|||||||
type: doc._type,
|
type: doc._type,
|
||||||
version: doc._version,
|
version: doc._version,
|
||||||
};
|
};
|
||||||
this.debug('Job created');
|
this.debug(`Job created in index ${this.index}`);
|
||||||
this.emit('created', this.document);
|
this.emit('created', this.document);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user