Added debugging statements for publishing. Refs #9376.