X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/60ea42bf70914453d9b357a94cc0f160b55a83d9..67bff06aa6fd4d7d3a9aefc2919307326fa6d755:/api/log.php diff --git a/api/log.php b/api/log.php index fdce591..7fbb90c 100644 --- a/api/log.php +++ b/api/log.php @@ -5,9 +5,24 @@ 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(); +$response = $rpc->log()->getAll($log_list); if ($response !== false) { /* Only supported in later UnrealIRCd versions */ @@ -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);