diff options
author | Christian Hesse <mail@eworm.de> | 2022-04-06 17:40:21 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-04-07 09:23:42 +0200 |
commit | 9dbc56457b1fb25099f7d487b8284a03b47ffbe4 (patch) | |
tree | 6853ed6e6e98b4b323bd78863e2742308a4fb5d9 /capsman-download-packages | |
parent | 0786111c5c5bd3085a52fec749fc68a1584c1a4c (diff) |
capsman-download-packages: try to warn about missing logs
Diffstat (limited to 'capsman-download-packages')
-rw-r--r-- | capsman-download-packages | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/capsman-download-packages b/capsman-download-packages index ac5ec0e..da43454 100644 --- a/capsman-download-packages +++ b/capsman-download-packages @@ -50,9 +50,15 @@ $WaitFullyConnected; } } -:if ($Updated = false && [ / system resource get uptime ] < 2m) do={ - $LogPrintExit2 info $0 ("No packages downloaded, yet. Delaying for logs.") false; - :delay 2m; +:if ([ :len [ / system logging find where topics~"error" !(topics~"!error") \ + !(topics~"!caps") action=memory !disabled !invalid ] ] < 1) do={ + $LogPrintExit2 warning $0 ("Looks like error messages for 'caps' are not sent to memory. " . \ + "Probably can not download packages automatically.") false; +} else={ + :if ($Updated = false && [ / system resource get uptime ] < 2m) do={ + $LogPrintExit2 info $0 ("No packages downloaded, yet. Delaying for logs.") false; + :delay 2m; + } } :foreach Log in=[ / log find where topics=({"caps", "error"}) \ |