]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Logs: don't show join/part/kick in live view by default.
authorBram Matthys <redacted>
Fri, 5 May 2023 13:00:18 +0000 (15:00 +0200)
committerBram Matthys <redacted>
Fri, 5 May 2023 13:01:21 +0000 (15:01 +0200)
See comment...
/* Add these as well, they are not logged by default
 * in the memory log either. See
 * https://github.com/unrealircd/unrealircd/commit/45342c2d33968178cd07a12cd6fdc4e65b604134
 * Added here separately because we may want to make
 * this an option...
 */

api/log.php

index fdce5918974c525f0dc695cc97d94610e26f7130..098d855511de4af16271d17dd499b732bce6ef26 100644 (file)
@@ -5,7 +5,22 @@ require_once('common_api.php');
 if (!$rpc)
     die();
 
-/* Basically everything ;) */
+/* Filter - almost everything... */
+$log_list = ["all", "!debug"];
+/* Add these as well, they are not logged by default
+ * in the memory log either. See
+ * https://github.com/unrealircd/unrealircd/commit/45342c2d33968178cd07a12cd6fdc4e65b604134
+ * Added here separately because we may want to make
+ * this an option...
+ */
+array_push($log_list,
+    "!join.LOCAL_CLIENT_JOIN",
+    "!join.REMOTE_CLIENT_JOIN",
+    "!part.LOCAL_CLIENT_PART",
+    "!part.REMOTE_CLIENT_PART",
+    "!kick.LOCAL_CLIENT_KICK",
+    "!kick.REMOTE_CLIENT_KICK",
+);
 
 $response = $rpc->log()->getAll();
 if ($response !== false)
@@ -25,4 +40,4 @@ if ($response !== false)
 $r = ["sync_option"=>"sync_now"];
 send_sse($r);
 
-api_log_loop(["all", "!debug"]);
+api_log_loop($log_list);