danielduarte/flowed

Allow to pass some extra namespace to debug.

Closed this issue · 2 comments

It would be convenient to have a way to add an extra namespace to the calls to debug, in order to better filter the logs using the DEBUG variable.

Added option to run flows with custom debug key (namespaces):

The optional parameter options can include the debug key as follows:

{
  debugKey: 'custom-scope'
}

This parameter can be specified when running flows in any of the forms:

FlowManager.run(flowSpec, params, expectedResults, resolvers, context, options)
FlowManager.runFromString(flowSpec, params, expectedResults, resolvers, context, options)
FlowManager.runFromFile(flowSpec, params, expectedResults, resolvers, context, options)
FlowManager.runFromUrl(flowSpec, params, expectedResults, resolvers, context, options)

Available in version 1.9.0.