mirror of
https://github.com/redis/redis.git
synced 2026-02-03 20:39:54 -05:00
Increase tilt message verbosity
For eons have tormented souls feared the wicked power of TILT. <LOTR opening music starts> Just like the victims of #10547, we have all spent sleepless nights wondering what dark magic commands our Sentinel instances. And just like https://github.com/bitnami/charts/issues/9689 we kept on failing to unveil the dark secrets. No more! Let's repel the darkness and print more information, so that instead of this: We get info about what condition was actually triggered. Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
parent
fa040a72c0
commit
ea177e4e2e
1 changed files with 3 additions and 1 deletions
|
|
@ -5447,7 +5447,9 @@ void sentinelCheckTiltCondition(void) {
|
|||
sentinel.tilt = 1;
|
||||
sentinel.tilt_start_time = mstime();
|
||||
sentinel.total_tilt++;
|
||||
sentinelEvent(LL_WARNING,"+tilt",NULL,"#tilt mode entered");
|
||||
sentinelEvent(LL_WARNING,"+tilt",NULL,
|
||||
"#tilt mode entered (now: %lld, delta: %lld, tilt_trigger: %lld)",
|
||||
now, delta, sentinel_tilt_trigger);
|
||||
}
|
||||
sentinel.previous_time = mstime();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue