Log warning if the primary template throws error and the default template is used instead.
Merge pull request #2395 from pulzarraider/log_template_default

Log warning if the primary template throws error and the default template is used instead