Add logging to clock transitions.