DRY up those logging messages.