stateChangesOnly() does not work as expected

Unfortunately not. Since as @wolffcm says in the issue that I opened in github:

Note that it looks for the state names ok , info , warn , and crit . And if it finds a _level that doesn’t match that it encodes that as a 0.

Then we can only use the levels predefined by the function, and we cannot use custom levels as in your case.

@delapuentem thanks for your reply. I asked @wolffcm if there is a way to rebuild the function as a custom function.

1 Like

I rewrite the function for my usecase. More infos here.
Maybe this helps someone. :blush: