Commit 7c2b1fcf authored by Steven Murray's avatar Steven Murray
Browse files

Added taped:LogLevel configuration parameter to cta-taped

parent 1cdd6e3b
......@@ -38,6 +38,7 @@ TapedConfiguration TapedConfiguration::createFromCtaConf(
ConfigurationFile cf(generalConfigPath);
// Extract configuration from parsed config file
// TpConfig
ret.logLevel.setFromConfigurationFile(cf, generalConfigPath);
ret.tpConfigPath.setFromConfigurationFile(cf, generalConfigPath);
// Memory management
ret.bufferSize.setFromConfigurationFile(cf, generalConfigPath);
......@@ -60,6 +61,7 @@ TapedConfiguration TapedConfiguration::createFromCtaConf(
ret.driveConfigs = Tpconfig::parseFile(ret.tpConfigPath.value());
// If we get here, the configuration file is good enough to be logged.
ret.logLevel.log(log);
ret.tpConfigPath.log(log);
ret.bufferSize.log(log);
......
......@@ -46,6 +46,9 @@ struct TapedConfiguration {
//----------------------------------------------------------------------------
// Basics: tp config
//----------------------------------------------------------------------------
/// Log level
SourcedParameter<std::string> logLevel = decltype(logLevel)
("taped", "LogLevel", "DEBUG", "Compile time default");
/// Path to the file describing the tape drives (TPCONFIG)
SourcedParameter<std::string> tpConfigPath = decltype(tpConfigPath)
("taped" , "TpConfigPath", "/etc/cta/TPCONFIG", "Compile time default");
......@@ -113,4 +116,4 @@ private:
} ;
}
}
} // namespace cta::tape::daemon
\ No newline at end of file
} // namespace cta::tape::daemon
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment