[hotfix] Build log templates separately from importing addons.

# Purpose
Separate building log templates from importing addons so that errors in the latter don't break the former.

# Changes
* Build log templates in separate function

# Side effects
None expected