queueobj 10.1.0 → 10.1.1
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/lib/appenders/base.js +6 -4
- package/package.json +1 -1
- package/test/package.js +1 -1
package/lib/appenders/base.js
CHANGED
|
@@ -68,9 +68,9 @@ class process_all_obj {
|
|
|
68
68
|
try {
|
|
69
69
|
if (typeof obj_props != 'undefined' && typeof obj_props.error != 'undefined') {
|
|
70
70
|
t.any_errors = true
|
|
71
|
-
t.parent.getParent().logMsg(
|
|
71
|
+
t.parent.getParent().logMsg(obj_props)
|
|
72
72
|
} else {
|
|
73
|
-
t.parent.getParent().logMsg(
|
|
73
|
+
t.parent.getParent().logMsg(obj_props)
|
|
74
74
|
}
|
|
75
75
|
t.parent.results_array.push(obj_props)
|
|
76
76
|
t.continueProcessing()
|
|
@@ -145,10 +145,12 @@ exports = module.exports = class base {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
getStats() {
|
|
148
|
-
let t = this
|
|
148
|
+
let t = this
|
|
149
|
+
t.dt_end = new Date();
|
|
150
|
+
let json_ret = { execution_time: 'status is set to false' }, st = t.dt_start, ed = t.dt_end, ml = t.dt_end - t.dt_start
|
|
149
151
|
json_ret.responses = t.results_array
|
|
150
152
|
if (t.getParent().getStats()) {
|
|
151
|
-
json_ret.execution_time = `start
|
|
153
|
+
json_ret.execution_time = `start `
|
|
152
154
|
json_ret.execution_time += `(${st}) end(${ed}) milliseconds(${ml})`
|
|
153
155
|
}
|
|
154
156
|
return json_ret
|
package/package.json
CHANGED