Fixed bug in example callbacks to correctly log success/fail

Conditional statements had the if/else clause the wrong way around.