Skip to content

Commit

Permalink
fix(logcollector): typo at FileReader config parser
Browse files Browse the repository at this point in the history
  • Loading branch information
vikman90 authored and Nicogp committed Nov 4, 2024
1 parent 3c5f98a commit 49f1f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/logcollector/src/logcollector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ void Logcollector::SetupFileReader(const configuration::ConfigurationParser& con
long reloadInterval = config::DEFAULT_RELOAD_INTERVAL;

try {
fileWait = m_enabled = configurationParser.GetConfig<long>("logcollector", "file_wait");
fileWait = configurationParser.GetConfig<long>("logcollector", "file_wait");
} catch (std::exception&) {
fileWait = config::DEFAULT_FILE_WAIT;
}

try {
reloadInterval = m_enabled = configurationParser.GetConfig<long>("logcollector", "reload_interval");
reloadInterval = configurationParser.GetConfig<long>("logcollector", "reload_interval");
} catch (std::exception&) {
reloadInterval = config::DEFAULT_FILE_WAIT;
}
Expand Down

0 comments on commit 49f1f2e

Please sign in to comment.