diff options
| author | Simon Rettberg | 2024-12-03 11:07:42 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2024-12-03 11:07:42 +0100 |
| commit | e22cdcbc1a832ad9feb1636b47831495513d2634 (patch) | |
| tree | 4835a9db0efa0fd0189fcee03f2919cd5066dc9f | |
| parent | [rebootcontrol] Make exec output look more like on terminal (diff) | |
| download | slx-admin-e22cdcbc1a832ad9feb1636b47831495513d2634.tar.gz slx-admin-e22cdcbc1a832ad9feb1636b47831495513d2634.tar.xz slx-admin-e22cdcbc1a832ad9feb1636b47831495513d2634.zip | |
[statistics] Don't log error if ~suspend event is received twice
| -rw-r--r-- | modules-available/statistics/api.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php index 18a58a77..c3d7f17c 100644 --- a/modules-available/statistics/api.inc.php +++ b/modules-available/statistics/api.inc.php @@ -424,7 +424,7 @@ if ($type[0] === '~') { WHERE machineuuid = :uuid AND state = :oldstate AND lastseen = :oldlastseen", array('uuid' => $uuid, 'oldlastseen' => $old['lastseen'], 'oldstate' => $old['state'])); EventLog::applyFilterRules($type, $old); - } else { + } elseif ($old['state'] !== 'STANDBY') { EventLog::info("[suspend] Client $uuid reported switch to standby when it wasn't powered on first. Was: " . $old['state']); } |
