examples: Update debug-logging.c example.

This updates commit e3546ad2ce2c0d953e3be2b072bacd48972450af.