Move the logger call to after the check for a callback.