Skip to content

Commit 5b2f209

Browse files
committed
add debug log
1 parent 76ba288 commit 5b2f209

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Framework/Core/src/DataProcessingHelpers.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,16 @@ void doSendOldestPossibleTimeframe(ServiceRegistryRef ref, fair::mq::TransportFa
7474
dih.oldestPossibleTimeslice = timeslice;
7575
auto channelAlloc = o2::pmr::getTransportAllocator(transport);
7676
auto header = o2::pmr::getMessage(o2::header::Stack{channelAlloc, dih});
77+
{
78+
auto* hb = header ? reinterpret_cast<const uint32_t*>(header->GetData()) : nullptr;
79+
LOGP(error, "SENDOPT idx={} ts={} firstWord={:#010x} hdrSize={}",
80+
index.value, timeslice, hb ? *hb : 0u, header ? header->GetSize() : 0u);
81+
}
7782
// sigh... See if we can avoid having it const by not
7883
// exposing it to the user in the first place.
7984
parts.AddPart(std::move(header));
8085
parts.AddPart(std::move(payload));
8186

82-
auto* hb = reinterpret_cast<const uint32_t*>(header->GetData());
83-
LOGP(error, "SENDOPT idx={} ts={} firstWord={:#010x} hdrSize={}",
84-
index.value, timeslice, hb ? *hb : 0u, header->GetSize());
85-
8687
callback(parts, index, ref);
8788
}
8889

0 commit comments

Comments
 (0)