@eclipse-glsp-examples/workflow-server-bundled 2.4.0-next.120 → 2.4.0-next.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp-examples/workflow-server-bundled",
|
|
3
|
-
"version": "2.4.0-next.
|
|
3
|
+
"version": "2.4.0-next.121+35d8055",
|
|
4
4
|
"description": "GLSP node server for the workflow example (bundled)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "35d805558ea1c8e40ec0b59d5144e41210b55038"
|
|
53
53
|
}
|
package/wf-glsp-server-node.js
CHANGED
|
@@ -67825,7 +67825,6 @@ exports.createWinstonInstance = createWinstonInstance;
|
|
|
67825
67825
|
* @param baseLoggerCreator The underling global {@link winston.Logger} instance.
|
|
67826
67826
|
*/
|
|
67827
67827
|
function configureWinstonLogger(context, options, rebind = true, baseLoggerCreator = createWinstonInstance) {
|
|
67828
|
-
const baseLogger = baseLoggerCreator(options);
|
|
67829
67828
|
if (rebind) {
|
|
67830
67829
|
if (context.isBound(common_1.Logger)) {
|
|
67831
67830
|
context.unbind(common_1.Logger);
|
|
@@ -67834,12 +67833,18 @@ function configureWinstonLogger(context, options, rebind = true, baseLoggerCreat
|
|
|
67834
67833
|
context.unbind(common_1.LoggerFactory);
|
|
67835
67834
|
}
|
|
67836
67835
|
}
|
|
67837
|
-
context.bind(common_1.Logger).toDynamicValue(dynamicContext => new winston_logger_1.WinstonLogger(baseLogger, (0, common_1.getRequestParentName)(dynamicContext)));
|
|
67838
67836
|
context.bind(common_1.LoggerFactory).toFactory(dynamicContext => (caller) => {
|
|
67839
67837
|
const logger = dynamicContext.container.get(common_1.Logger);
|
|
67840
67838
|
logger.caller = caller;
|
|
67841
67839
|
return logger;
|
|
67842
67840
|
});
|
|
67841
|
+
// if no logging is enabled, bind the NullLogger
|
|
67842
|
+
if (!options.consoleLog && !options.fileLog) {
|
|
67843
|
+
context.bind(common_1.Logger).to(common_1.NullLogger).inSingletonScope();
|
|
67844
|
+
return;
|
|
67845
|
+
}
|
|
67846
|
+
const baseLogger = baseLoggerCreator(options);
|
|
67847
|
+
context.bind(common_1.Logger).toDynamicValue(dynamicContext => new winston_logger_1.WinstonLogger(baseLogger, (0, common_1.getRequestParentName)(dynamicContext)));
|
|
67843
67848
|
}
|
|
67844
67849
|
exports.configureWinstonLogger = configureWinstonLogger;
|
|
67845
67850
|
|