queueobj 10.1.0 → 10.1.2
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 +8 -7
- 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,13 +145,14 @@ exports = module.exports = class base {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
getStats() {
|
|
148
|
-
let t = this
|
|
149
|
-
|
|
148
|
+
let t = this
|
|
149
|
+
t.dt_end = new Date();
|
|
150
|
+
let ret_str = '', st = t.dt_start, ed = t.dt_end, ml = t.dt_end - t.dt_start
|
|
151
|
+
// ret_str += JSON.stringify(t.results_array)
|
|
150
152
|
if (t.getParent().getStats()) {
|
|
151
|
-
|
|
152
|
-
json_ret.execution_time += `(${st}) end(${ed}) milliseconds(${ml})`
|
|
153
|
+
ret_str += `start (${st}) end(${ed}) milliseconds(${ml})`
|
|
153
154
|
}
|
|
154
|
-
return
|
|
155
|
+
return ret_str //jrm debug
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
process_all = () => {
|
package/package.json
CHANGED