mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Add --log-level command line option to filter out log messages from lower log levels. Then fix the annoying CzechLight warning message and useless "NACM config validation" log. Then add audit trail as we have in netopeer2-server, and finish off by stripping redundant fields from log message: timestamp, identity, and log level. Fixes #892 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From cb0c00ceba7ac4b225382ffacef919f2573dc5cb Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jan.kundrat@cesnet.cz>
|
|
Date: Thu, 7 Aug 2025 12:21:54 +0200
|
|
Subject: [PATCH 13/42] fix a possible bad_weak_ptr exception
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
Organization: Wires
|
|
|
|
Change-Id: I8c7f7a943a1d848f15527988cb76c2a0a10089e6
|
|
Fixes: 4eae6200 (close long-lived connections on SIGTERM)
|
|
Signed-off-by: Mattias Walström <lazzer@gmail.com>
|
|
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
|
|
---
|
|
src/http/EventStream.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/http/EventStream.cpp b/src/http/EventStream.cpp
|
|
index 3bdd55e..8703dad 100644
|
|
--- a/src/http/EventStream.cpp
|
|
+++ b/src/http/EventStream.cpp
|
|
@@ -47,7 +47,7 @@ EventStream::EventStream(const server::request& req,
|
|
}
|
|
|
|
state = WantToClose;
|
|
- boost::asio::post(this->res.io_service(), [weak = std::weak_ptr<EventStream>{shared_from_this()}]() {
|
|
+ boost::asio::post(this->res.io_service(), [weak = weak_from_this()]() {
|
|
if (auto myself = weak.lock()) {
|
|
std::lock_guard lock{myself->mtx};
|
|
if (myself->state == WantToClose) { // resume unless somebody closed it before this was picked up by the event loop
|
|
--
|
|
2.43.0
|
|
|