Adding RedisLogger as a default for daggyd

This commit is contained in:
Ian Roddis
2021-10-13 15:30:13 -03:00
parent 9a0d2bb145
commit 08260043d0

View File

@@ -9,15 +9,17 @@
// Add executors here
#ifdef DAGGY_ENABLE_SLURM
#include <daggy/executors/task/SlurmTaskExecutor.hpp>
#else
#include <daggy/executors/task/ForkingTaskExecutor.hpp>
#endif
// Add loggers here
#ifdef DAGGY_ENABLE_REDIS
#include <daggy/loggers/dag_run/RedisLogger.hpp>
#else
#include <daggy/loggers/dag_run/OStreamLogger.hpp>
#endif
/*
#include <stdio.h>
@@ -195,7 +197,11 @@ int main(int argc, char **argv)
std::unique_ptr<daggy::loggers::dag_run::DAGRunLogger> logger;
if (logFileName == "-") {
logger =
#ifdef DAGGY_ENABLE_REDIS
std::make_unique<daggy::loggers::dag_run::RedisLogger>();
#else
std::make_unique<daggy::loggers::dag_run::OStreamLogger>(std::cout);
#endif
}
else {
logFH.open(logFileName, std::ios::app);