X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/7bfda0e1316d5024d3871cc6e38a6920106d5907..99eb79c42a9a0fe3b6ffedd3e2e3c611018072da:/api/log.php diff --git a/api/log.php b/api/log.php index 12f053d..fdce591 100644 --- a/api/log.php +++ b/api/log.php @@ -11,8 +11,18 @@ $response = $rpc->log()->getAll(); if ($response !== false) { /* Only supported in later UnrealIRCd versions */ + $cnt = 0; foreach($response as $r) + { + $r = (ARRAY)$r; + $cnt++; + if (($cnt % 100) != 0) + $r["sync_option"] = "no_sync"; send_sse($r); + } } +$r = ["sync_option"=>"sync_now"]; +send_sse($r); + api_log_loop(["all", "!debug"]);