Workflows do not correctly capture their log channel
@@ -252,8 +252,8 @@ public abstract class Workflow extends Variables implements IVariables, INamedPa
public Workflow() {
super();
init();
- this.log = new LogChannel( this );
- this.logLevel = log.getLogLevel();
+ // Don't spam the logging backend for nothing. Don't create this.log here.
+ this.logLevel = LogLevel.BASIC;
}
/**
@@ -896,6 +896,12 @@ public abstract class Workflow extends Variables implements IVariables, INamedPa
*/
@Override public void setWorkflowMeta( WorkflowMeta workflowMeta ) {
this.workflowMeta = workflowMeta;
+
+ // We change the topic in other words.
+ // This means we need to create a new Logging Object
+ //
+ this.log = new LogChannel( this, parentLoggingObject );
+ this.logLevel = log.getLogLevel();
}
public WorkflowTracker getWorkflowTracker() {
