set up a handler to catch and log debug messages from the tevent layer