mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[ntcore] Only datalog meta-topics if specifically requested (#5873)
This commit is contained in:
@@ -130,7 +130,7 @@ void LocalStorage::Impl::NotifyTopic(TopicData* topic,
|
||||
if (!m_dataloggers.empty()) {
|
||||
auto now = Now();
|
||||
for (auto&& datalogger : m_dataloggers) {
|
||||
if (wpi::starts_with(topic->name, datalogger->prefix)) {
|
||||
if (PrefixMatch(topic->name, datalogger->prefix, topic->special)) {
|
||||
auto it = std::find_if(topic->datalogs.begin(), topic->datalogs.end(),
|
||||
[&](const auto& elem) {
|
||||
return elem.logger == datalogger->handle;
|
||||
@@ -1448,7 +1448,7 @@ NT_DataLogger LocalStorage::StartDataLog(wpi::log::DataLog& log,
|
||||
// start logging any matching topics
|
||||
auto now = nt::Now();
|
||||
for (auto&& topic : m_impl.m_topics) {
|
||||
if (!wpi::starts_with(topic->name, prefix) ||
|
||||
if (!PrefixMatch(topic->name, prefix, topic->special) ||
|
||||
topic->type == NT_UNASSIGNED || topic->typeStr.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user