forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
keepalived: add patch to remove log message on json output
The 'luci-app-keepalived' uses the status json output to parse this information for the status page. The problem is that when the LuCI status page is open in the browser, the query is logged every 3 second into the syslog. This is not needed and can therefore be removed. This patch was already merged upstream: acassen/keepalived@6cce75f Signed-off-by: Florian Eckert <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
net/keepalived/patches/0001-vrrp-remove-logging-on-status-output.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From 6cce75f4eb65551a61d2e4ba775637b288c1d592 Mon Sep 17 00:00:00 2001 | ||
From: Florian Eckert <[email protected]> | ||
Date: Mon, 6 May 2024 13:10:55 +0200 | ||
Subject: [PATCH] vrrp: remove logging on status output | ||
|
||
A message is output to the log each time the status is queried. This is | ||
not necessary and can therefore be omitted. | ||
|
||
Signed-off-by: Florian Eckert <[email protected]> | ||
--- | ||
keepalived/vrrp/vrrp_daemon.c | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
--- a/keepalived/vrrp/vrrp_daemon.c | ||
+++ b/keepalived/vrrp/vrrp_daemon.c | ||
@@ -755,8 +755,6 @@ sigusr2_vrrp(__attribute__((unused)) voi | ||
static void | ||
sigjson_vrrp(__attribute__((unused)) void *v, __attribute__((unused)) int sig) | ||
{ | ||
- log_message(LOG_INFO, "Printing VRRP as json for process(%d) on signal", | ||
- getpid()); | ||
thread_add_event(master, print_vrrp_json, NULL, 0); | ||
} | ||
#endif |