Skip to content

Commit 08fe399

Browse files
committed
PipePondAdapter: set the TIMESTAMP attribute
1 parent 34a6ab3 commit 08fe399

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cm4all-workshop (7.10) unstable; urgency=low
22

3-
*
3+
* cron: set the TIMESTAMP attribute on Pond datagrams
44

55
--
66

src/PipeCaptureBuffer.hxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ public:
2727
Close();
2828
}
2929

30+
auto &GetEventLoop() const noexcept {
31+
return event.GetEventLoop();
32+
}
33+
3034
bool IsFull() const noexcept {
3135
return buffer.IsFull();
3236
}

src/PipePondAdapter.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// author: Max Kellermann <max.kellermann@ionos.com>
44

55
#include "PipePondAdapter.hxx"
6+
#include "event/Loop.hxx"
67
#include "net/log/Send.hxx"
78
#include "net/log/Datagram.hxx"
89
#include "util/PrintException.hxx"
@@ -31,6 +32,7 @@ PipePondAdapter::OnLine(std::string_view line) noexcept
3132
}
3233

3334
Net::Log::Datagram d{
35+
.timestamp = Net::Log::FromSystem(GetEventLoop().SystemNow()),
3436
.message = line,
3537
.type = Net::Log::Type::JOB,
3638
};

0 commit comments

Comments
 (0)