Small logger.debug optimization

extra_keys is only used for debugging, so that would have to go to a debug block.

review @camilo