From 8798cf4e3ba30bc0bdea073bf273ac27b71b78ce Mon Sep 17 00:00:00 2001 From: Guillaume Dube Date: Fri, 3 Nov 2017 04:56:20 -0400 Subject: Set session and indexers' data files rel to AppDataPath (#2192) * Set session and indexers' data files rel to AppDataPath The setting AppDataPath is now relative to the working directory. The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions. The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves. * fix bug --- routers/init.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers') diff --git a/routers/init.go b/routers/init.go index 18a6d03d08..3ed5fc4f58 100644 --- a/routers/init.go +++ b/routers/init.go @@ -45,6 +45,8 @@ func NewServices() { // GlobalInit is for global configuration reload-able. func GlobalInit() { setting.NewContext() + log.Trace("AppPath: %s", setting.AppPath) + log.Trace("AppWorkPath: %s", setting.AppWorkPath) log.Trace("Custom path: %s", setting.CustomPath) log.Trace("Log path: %s", setting.LogRootPath) models.LoadConfigs() -- cgit v1.2.3