Fix callback to log/ function