honour LSECITIES_THEME_DEBUG flag for any error logging