-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Hi There,
It seems that this repository doesn't work anymore because of the "winston" plugin which has been changed , It could be great if you could fix these issues , at least update this plugin so that the plugin will be useful again.
Tested with latest node 10.6.0 .
Thanks in advanced .
var gearmanode2 = require('gearmanode');
//gearmanode.Client.logger.transports.console.level = 'info';
var client = gearmanode2.client({servers:[{host: '192.168.0.70', port: 4730}]});
var job = client.submitJob('reverse', 'hello world!');
job.on('workData', function(data) {
console.log('WORK_DATA >>> ' + data);
});
job.on('complete', function() {
console.log('RESULT >>> ' + job.response);
client.close();
});
[winston] Attempt to write logs with no transports %j
logger.js:202
Object {level: "info", message: "GearmaNode %s, running on Node.js %s [%s %s], with…", Symbol(level): "info", Symbol(splat): Array(5)}
logger.js:202
TypeError: Cannot set property 'isLevelEnabled' of undefined
gearmanode.js:41
at Object. (c:(!) Projects2018\GearmanNode\node_modules\gearmanode\lib\gearmanode.js:41:41)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (c:(!) Projects2018\GearmanNode\Client.js:1:81)
at Module._compile (internal/modules/cjs/loader.js:686:14)