Skip to content

Commit

Permalink
iox-eclipse-iceoryx#408 fix unchecked optional access in roudi cmd li…
Browse files Browse the repository at this point in the history
…ne parser

Signed-off-by: Mathias Kraus <mathias.kraus@apex.ai>
  • Loading branch information
elBoberido committed Dec 16, 2020
1 parent 5a46538 commit 1a2272b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions iceoryx_posh/source/roudi/roudi_cmd_line_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,15 @@ void CmdLineParser::printParameters() const noexcept
LogVerbose() << "Log level: " << m_logLevel;
LogVerbose() << "Monitoring mode: " << m_monitoringMode;
LogVerbose() << "Compatibility check level: " << m_compatibilityCheckLevel;
LogVerbose() << "Unique RouDi ID: " << m_uniqueRouDiId.value();
LogVerbose() << "Process kill delay: " << m_processKillDelay.seconds<uint64_t>() << " ms" ;
if (m_uniqueRouDiId)
{
LogVerbose() << "Unique RouDi ID: " << m_uniqueRouDiId.value();
}
else
{
LogVerbose() << "Unique RouDi ID: not set";
}
LogVerbose() << "Process kill delay: " << m_processKillDelay.seconds<uint64_t>() << " ms";
}

} // namespace config
Expand Down

0 comments on commit 1a2272b

Please sign in to comment.