gearman-node-bda
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -152,3 +152,3 @@ // Copyright 2013 The GearmaNode Library Authors. All Rights Reserved. | ||
if (err instanceof Error) { | ||
Client.logger.log('warn', 'failed to submit job, server=%s, error:', jobServer.getUid(), err); | ||
Client.logger.log('warn', 'failed to submit job, server=%s, error=%s', jobServer.getUid(), err.stack); | ||
tryToSend(); | ||
@@ -159,3 +159,3 @@ } else { | ||
process.nextTick(function() { job.emit('submited'); }); | ||
Client.logger.log('debug', 'job submited, name=%s, unique=%s', job.name, job.unique); | ||
Client.logger.log('debug', 'job submited, name=%s, unique=%s, jobServerUid=%s', job.name, job.unique, job.jobServerUid); | ||
} | ||
@@ -162,0 +162,0 @@ } |
@@ -224,2 +224,3 @@ // Copyright 2013 The GearmaNode Library Authors. All Rights Reserved. | ||
this.send(packet); | ||
JobServer.logger.log('debug','echo back REQ, data=%s', data); | ||
} | ||
@@ -363,3 +364,3 @@ | ||
case protocol.PACKET_TYPES.ERROR: | ||
JobServer.logger.log('warn', 'job server error, uid=%s, code=%s, msg=%s', | ||
JobServer.logger.log('error', 'job server error, uid=%s, code=%s, msg=%s', | ||
this.getUid(), parsedPacket[1], parsedPacket[2]); | ||
@@ -366,0 +367,0 @@ |
@@ -116,2 +116,3 @@ // Copyright 2013 The GearmaNode Library Authors. All Rights Reserved. | ||
jobServer = this.jobServers[i]; | ||
if (options.hasOwnProperty('timeout')) { | ||
@@ -122,5 +123,6 @@ jobServer.send(protocol.encodePacket(protocol.PACKET_TYPES.CAN_DO_TIMEOUT, [name, options['timeout']])); | ||
} | ||
Worker.logger.log('info', 'registered function name=%s on server uid=%s', name, jobServer.getUid()); | ||
this._preSleep(jobServer); | ||
this.functions[name] = [callback, options]; | ||
Worker.logger.log('info', 'registered function name=%s on server uid=%s', name, jobServer.getUid()); | ||
} | ||
@@ -239,2 +241,3 @@ } | ||
var jobOpts = { handle: parsedPacket[1], name: parsedPacket[2], jobServerUid: jobServer.getUid() }; | ||
Worker.logger.log("debug", "job assign, handle=%s, name=%s", jobOpts.handle, jobOpts.name); | ||
if (packetType === protocol.PACKET_TYPES.JOB_ASSIGN) { | ||
@@ -241,0 +244,0 @@ jobOpts.payload = parsedPacket[3]; |
{ | ||
"name": "gearman-node-bda", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "Node.js library for the Gearman distributed job system with support for multiple servers", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"dependencies": { | ||
"winston": ">=0.7.1" | ||
"winston": "^2.0.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109119
1879
+ Addedasync@2.6.4(transitive)
+ Addedcolors@1.0.3(transitive)
+ Addedcycle@1.0.3(transitive)
+ Addedeyes@0.1.8(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedwinston@2.4.7(transitive)
- Removed@colors/colors@1.6.0(transitive)
- Removed@dabh/diagnostics@2.0.3(transitive)
- Removed@types/triple-beam@1.3.5(transitive)
- Removedasync@3.2.6(transitive)
- Removedcolor@3.2.1(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcolor-string@1.9.1(transitive)
- Removedcolorspace@1.1.4(transitive)
- Removedenabled@2.0.0(transitive)
- Removedfecha@4.2.3(transitive)
- Removedfn.name@1.1.0(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arrayish@0.3.2(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedkuler@2.0.0(transitive)
- Removedlogform@2.7.0(transitive)
- Removedms@2.1.3(transitive)
- Removedone-time@1.0.0(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafe-stable-stringify@2.5.0(transitive)
- Removedsimple-swizzle@0.2.2(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedtext-hex@1.0.0(transitive)
- Removedtriple-beam@1.4.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwinston@3.17.0(transitive)
- Removedwinston-transport@4.9.0(transitive)
Updatedwinston@^2.0.0