corebasic 1.0.140 → 1.0.141
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/libs/features.js +3 -1
- package/package.json +1 -1
package/libs/features.js
CHANGED
|
@@ -221,7 +221,9 @@ export const start = async (app, url, file) => {
|
|
|
221
221
|
await features[message.feature].handler(topic, message)
|
|
222
222
|
await Dip.insert(message.meta, "Features.txns", {_id: message.txn, status: "Processed"})
|
|
223
223
|
break
|
|
224
|
-
} catch {
|
|
224
|
+
} catch(err) {
|
|
225
|
+
if (process.env.DEBUG_MODE)
|
|
226
|
+
console.log('Error: Feature: ', message.feature, err)
|
|
225
227
|
console.warn(`Feature: ${message.feature}, error in executing handler during Kafka.receive(topic: ${topic})`)
|
|
226
228
|
}
|
|
227
229
|
await timer(10000);
|