MINOR: listener: add a function to return a listener's state as a string

This will be used in debugging output, so it's a short 3-character string.
1 file changed