Print when we're listening, for use in automated tests. Fixes #1884.