Fix sample log function call

Refs #10094