mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 07:33:01 +02:00
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 438a18f5884ace3063f00a2dfc53dd2b4034f53e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Pecka?= <tomas.pecka@cesnet.cz>
|
|
Date: Wed, 16 Apr 2025 10:56:50 +0200
|
|
Subject: [PATCH 44/44] restconf: add access log to stream root
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
Organization: Wires
|
|
|
|
Change-Id: I5e1db3f40bc6a7f294e6a5fef9402e0855055258
|
|
Signed-off-by: Mattias Walström <lazzer@gmail.com>
|
|
---
|
|
src/restconf/Server.cpp | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/restconf/Server.cpp b/src/restconf/Server.cpp
|
|
index f3c515b..5b1b2f9 100644
|
|
--- a/src/restconf/Server.cpp
|
|
+++ b/src/restconf/Server.cpp
|
|
@@ -902,6 +902,9 @@ Server::Server(sysrepo::Connection conn, const std::string& address, const std::
|
|
});
|
|
|
|
server->handle(netconfStreamRoot, [this, conn](const auto& req, const auto& res) mutable {
|
|
+ const auto& peer = http::peer_from_request(req);
|
|
+ spdlog::info("{}: {} {}", peer, req.method(), req.uri().raw_path);
|
|
+
|
|
std::optional<std::string> xpathFilter;
|
|
std::optional<sysrepo::NotificationTimeStamp> startTime;
|
|
std::optional<sysrepo::NotificationTimeStamp> stopTime;
|
|
--
|
|
2.43.0
|
|
|