MM-14052: Fix subpath rewrite again (#10252)

* actually log an error when subpath rewrite fails

* update subpath rewrite to accommodate dropping unsafe-eval
Этот коммит содержится в:
Jesse Hallam
2019-02-11 21:21:23 -05:00
коммит произвёл GitHub
родитель 93244fdaa1
Коммит aca8914e35
3 изменённых файлов: 24 добавлений и 9 удалений

Просмотреть файл

@@ -23,7 +23,9 @@ var robotsTxt = []byte("User-agent: *\nDisallow: /\n")
func (w *Web) InitStatic() {
if *w.ConfigService.Config().ServiceSettings.WebserverMode != "disabled" {
utils.UpdateAssetsSubpathFromConfig(w.ConfigService.Config())
if err := utils.UpdateAssetsSubpathFromConfig(w.ConfigService.Config()); err != nil {
mlog.Error("Failed to update assets subpath from config", mlog.Err(err))
}
staticDir, _ := fileutils.FindDir(model.CLIENT_DIR)
mlog.Debug(fmt.Sprintf("Using client directory at %v", staticDir))