#include "AliHLTSystem.h"
// the standard components
-#include "AliHLTFilePublisher.h"
+// #include "AliHLTFilePublisher.h"
#include "AliHLTFileWriter.h"
-#include "AliHLTRootFilePublisherComponent.h"
-#include "AliHLTRootFileWriterComponent.h"
+// #include "AliHLTRootFilePublisherComponent.h"
+// #include "AliHLTRootFileWriterComponent.h"
/** ROOT macro for the implementation of ROOT specific class methods */
ClassImp(AliHLTComponentHandler)
// see header file for class documentation
if (pEnv) {
memcpy(&fEnvironment, pEnv, sizeof(AliHLTComponentEnvironment));
- AliHLTLogging::Init(pEnv->fLoggingFunc);
+ if (pEnv->fLoggingFunc) {
+ // the AliHLTLogging::Init method also sets the stream output
+ // and notification handler to AliLog. This should only be done
+ // if the logging environment contains a logging function
+ // for redirection
+ AliHLTLogging::Init(pEnv->fLoggingFunc);
+ }
} else
memset(&fEnvironment, 0, sizeof(AliHLTComponentEnvironment));
AddStandardComponents();
// see header file for class documentation
if (pEnv) {
memcpy(&fEnvironment, pEnv, sizeof(AliHLTComponentEnvironment));
- AliHLTLogging::Init(fEnvironment.fLoggingFunc);
+ if (fEnvironment.fLoggingFunc) {
+ // the AliHLTLogging::Init method also sets the stream output
+ // and notification handler to AliLog. This should only be done
+ // if the logging environment contains a logging function
+ // for redirection
+ AliHLTLogging::Init(fEnvironment.fLoggingFunc);
+ }
}
}
// see header file for class documentation
int iResult=0;
AliHLTComponent::SetGlobalComponentHandler(this);
- fStandardList.push_back(new AliHLTFilePublisher);
+// fStandardList.push_back(new AliHLTFilePublisher);
fStandardList.push_back(new AliHLTFileWriter);
- fStandardList.push_back(new AliHLTRootFilePublisherComponent);
- fStandardList.push_back(new AliHLTRootFileWriterComponent);
+// fStandardList.push_back(new AliHLTRootFilePublisherComponent);
+// fStandardList.push_back(new AliHLTRootFileWriterComponent);
AliHLTComponent::UnsetGlobalComponentHandler();
iResult=RegisterScheduledComponents();
return iResult;