Skip to content
Snippets Groups Projects
Commit af8ee586 authored by Steven Murray's avatar Steven Murray
Browse files

Added taped:LogLevel configuration parameter to cta-taped

parent 96034569
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment