$(document).ready(function(){EWD.log = true;EWD.on("ewd-registered", function() {console.log("event: ewd-registered");
--
You received this message because you are subscribed to the Google Groups "Enterprise Web Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enterprise-web-develope...@googlegroups.com.
To post to this group, send email to enterprise-web-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/enterprise-web-developer-community.
To view this discussion on the web, visit https://groups.google.com/d/msgid/enterprise-web-developer-community/78a94ea4-2911-4f25-b296-767869c2e497%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
module.exports = function() {
this.userDefined.dontLog = [
"login",
"getUsers"
];
};
Then create an onLoad.js file in the qewd-apps application sub-folder (https://github.com/robtweed/qewd/blob/master/up/docs/InteractiveApps.md#onload)
This should invoke the special worker function that suppresses logging - we pass it that userDefined array, eg:
module.exports = function() {
this.dontLog(this.userDefined.dontLog);
};
and that's it. Restart the QEWD-Up process and you should no longer see those message types in the console log.
If you're using the older-style way of using QEWD, it's a bit more difficult. You need to define that userDefined array in your master process startup logic. The trick is then ensuring that each worker invokes the dontLog() function - you can do that in the init() section of your application's message handler module.
Let me know how you get on
Rob
--
You received this message because you are subscribed to the Google Groups "Enterprise Web Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enterprise-web-develope...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/enterprise-web-developer-community/38277ab2-3328-4f24-b6ef-b7345ea50a42%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to enterprise-web-developer-community+unsubscribe@googlegroups.com.
Session Garbage Collector has started in worker 956
Fri, 31 Jul 2020 14:01:32 GMT; master process received response from worker 956: {"type":"workerProcessStarted","ok":956}
new worker 956 started and ready so process queue again
Fri, 31 Jul 2020 14:01:32 GMT; worker 956 received message: {"type":"ewd-reregister","token":"3a82674a-b48a-495e-b2e2-339bf7036da0","socketId":"rFkHBmbNWyG2AERrAAAA","ipAddress":"::ffff:10.249.18.171"}
re-register token 3a82674a-b48a-495e-b2e2-339bf7036da0
Fri, 31 Jul 2020 14:01:32 GMT; master process received response from worker 956: {"type":"ewd-reregister","finished":true,"message":{"ok":true}}
socket rFkHBmbNWyG2AERrAAAA disconnected
Fri, 31 Jul 2020 14:02:02 GMT; worker 956 received message: {"type":"ewd-register","application":"smile","jwt":false,"socketId":"LjeBbAI03UtGEcVLAAAB","ipAddress":"::ffff:10.249.18.171"}
Fri, 31 Jul 2020 14:02:02 GMT; master process received response from worker 956: {"type":"ewd-register","finished":true,"message":{"token":"d08c0c6a-66ac-4a26-9495-5eb888a115f3"}}
Fri, 31 Jul 2020 14:02:10 GMT; worker 956 received message: {"service":"security","type":"login","params":{"jhed":"mreach1","password":"XXXXXXXXX"},"token":"d08c0c6a-66ac-4a26-9495-5eb888a115f3"}
loadModule: handler module loaded for application smile; module: d:\qewd\qewd-up/qewd-apps/smile
running up/qewdAppHandler.js in process 956
onResponsePath = d:\qewd\qewd-up\qewd-apps\security/ASlogin/onResponse.js
onResponsePath = d:\qewd\qewd-up\qewd-apps\security/encryption/onResponse.js
onResponsePath = d:\qewd\qewd-up\qewd-apps\security/login/onResponse.js
onLoadPath = d:\qewd\qewd-up\qewd-apps\security/onLoad.js
beforeHandlerPath = d:\qewd\qewd-up\qewd-apps\security/beforeHandler.js
servicesAllowedPath = d:\qewd\qewd-up\qewd-apps\security/servicesAllowed.json
loadModule: handler module loaded for application security; module: d:\qewd\qewd-up/qewd-apps/security
running up/qewdAppHandler.js in process 5584
...
socket LjeBbAI03UtGEcVLAAAB disconnected
Fri, 31 Jul 2020 14:05:30 GMT; worker 956 received message: {"type":"ewd-register","application":"smile","jwt":false,"socketId":"lYN36uqaCS9JsVmzAAAC","ipAddress":"::ffff:10.249.18.171"}
Fri, 31 Jul 2020 14:05:30 GMT; master process received response from worker 956: {"type":"ewd-register","finished":true,"message":{"token":"12ede2b3-c6ae-44dc-a8f2-271347826403"}}
956: Checking for expired sessions in CacheTempEWDSession
Finished checking sessions
Fri, 31 Jul 2020 14:05:38 GMT; worker 956 received message: {"type":"getIRlist","params":{"psmileid":"888","otype":"SMILE Employees","usrlvl":0},"token":"12ede2b3-c6ae-44dc-a8f2-271347826403"}
Fri, 31 Jul 2020 14:05:38 GMT; master process received response from worker 956: {"type":"getIRlist","finished":true,"message":{"ok":1,"data":{"ok":1,"IRsObj":{"labIRlist":{"1":{"1":{"PNL":"HPTN","fullnm":"Asociacion Civil Selva