Moves the log to the getTemplatePath method