setting.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. // Copyright 2014 Unknwon
  2. // Copyright 2014 Torkel Ödegaard
  3. package setting
  4. import (
  5. "bytes"
  6. "fmt"
  7. "net/url"
  8. "os"
  9. "path"
  10. "path/filepath"
  11. "regexp"
  12. "runtime"
  13. "strings"
  14. "gopkg.in/ini.v1"
  15. "github.com/go-macaron/session"
  16. "github.com/grafana/grafana/pkg/log"
  17. "github.com/grafana/grafana/pkg/util"
  18. )
  19. type Scheme string
  20. const (
  21. HTTP Scheme = "http"
  22. HTTPS Scheme = "https"
  23. SOCKET Scheme = "socket"
  24. DEFAULT_HTTP_ADDR string = "0.0.0.0"
  25. )
  26. const (
  27. DEV string = "development"
  28. PROD string = "production"
  29. TEST string = "test"
  30. )
  31. var (
  32. // App settings.
  33. Env string = DEV
  34. AppUrl string
  35. AppSubUrl string
  36. InstanceName string
  37. // build
  38. BuildVersion string
  39. BuildCommit string
  40. BuildStamp int64
  41. // Paths
  42. LogsPath string
  43. HomePath string
  44. DataPath string
  45. PluginsPath string
  46. CustomInitPath = "conf/custom.ini"
  47. // Log settings.
  48. LogModes []string
  49. LogConfigs []util.DynMap
  50. // Http server options
  51. Protocol Scheme
  52. Domain string
  53. HttpAddr, HttpPort string
  54. SshPort int
  55. CertFile, KeyFile string
  56. SocketPath string
  57. RouterLogging bool
  58. DataProxyLogging bool
  59. StaticRootPath string
  60. EnableGzip bool
  61. EnforceDomain bool
  62. // Security settings.
  63. SecretKey string
  64. LogInRememberDays int
  65. CookieUserName string
  66. CookieRememberName string
  67. DisableGravatar bool
  68. EmailCodeValidMinutes int
  69. DataProxyWhiteList map[string]bool
  70. // Snapshots
  71. ExternalSnapshotUrl string
  72. ExternalSnapshotName string
  73. ExternalEnabled bool
  74. SnapShotTTLDays int
  75. SnapShotRemoveExpired bool
  76. // User settings
  77. AllowUserSignUp bool
  78. AllowUserOrgCreate bool
  79. AutoAssignOrg bool
  80. AutoAssignOrgRole string
  81. VerifyEmailEnabled bool
  82. LoginHint string
  83. DefaultTheme string
  84. DisableLoginForm bool
  85. DisableSignoutMenu bool
  86. ExternalUserMngLinkUrl string
  87. ExternalUserMngLinkName string
  88. ExternalUserMngInfo string
  89. // Http auth
  90. AdminUser string
  91. AdminPassword string
  92. AnonymousEnabled bool
  93. AnonymousOrgName string
  94. AnonymousOrgRole string
  95. // Auth proxy settings
  96. AuthProxyEnabled bool
  97. AuthProxyHeaderName string
  98. AuthProxyHeaderProperty string
  99. AuthProxyAutoSignUp bool
  100. AuthProxyLdapSyncTtl int
  101. AuthProxyWhitelist string
  102. // Basic Auth
  103. BasicAuthEnabled bool
  104. // Session settings.
  105. SessionOptions session.Options
  106. // Global setting objects.
  107. Cfg *ini.File
  108. ConfRootPath string
  109. IsWindows bool
  110. // PhantomJs Rendering
  111. ImagesDir string
  112. PhantomDir string
  113. // for logging purposes
  114. configFiles []string
  115. appliedCommandLineProperties []string
  116. appliedEnvOverrides []string
  117. ReportingEnabled bool
  118. CheckForUpdates bool
  119. GoogleAnalyticsId string
  120. GoogleTagManagerId string
  121. // LDAP
  122. LdapEnabled bool
  123. LdapConfigFile string
  124. LdapAllowSignup bool = true
  125. // SMTP email settings
  126. Smtp SmtpSettings
  127. // QUOTA
  128. Quota QuotaSettings
  129. // Alerting
  130. AlertingEnabled bool
  131. ExecuteAlerts bool
  132. // logger
  133. logger log.Logger
  134. // Grafana.NET URL
  135. GrafanaComUrl string
  136. // S3 temp image store
  137. S3TempImageStoreBucketUrl string
  138. S3TempImageStoreAccessKey string
  139. S3TempImageStoreSecretKey string
  140. ImageUploadProvider string
  141. )
  142. type CommandLineArgs struct {
  143. Config string
  144. HomePath string
  145. Args []string
  146. }
  147. func init() {
  148. IsWindows = runtime.GOOS == "windows"
  149. logger = log.New("settings")
  150. }
  151. func parseAppUrlAndSubUrl(section *ini.Section) (string, string) {
  152. appUrl := section.Key("root_url").MustString("http://localhost:3000/")
  153. if appUrl[len(appUrl)-1] != '/' {
  154. appUrl += "/"
  155. }
  156. // Check if has app suburl.
  157. url, err := url.Parse(appUrl)
  158. if err != nil {
  159. log.Fatal(4, "Invalid root_url(%s): %s", appUrl, err)
  160. }
  161. appSubUrl := strings.TrimSuffix(url.Path, "/")
  162. return appUrl, appSubUrl
  163. }
  164. func ToAbsUrl(relativeUrl string) string {
  165. return AppUrl + relativeUrl
  166. }
  167. func shouldRedactKey(s string) bool {
  168. uppercased := strings.ToUpper(s)
  169. return strings.Contains(uppercased, "PASSWORD") || strings.Contains(uppercased, "SECRET") || strings.Contains(uppercased, "PROVIDER_CONFIG")
  170. }
  171. func shouldRedactURLKey(s string) bool {
  172. uppercased := strings.ToUpper(s)
  173. return strings.Contains(uppercased, "DATABASE_URL")
  174. }
  175. func applyEnvVariableOverrides() {
  176. appliedEnvOverrides = make([]string, 0)
  177. for _, section := range Cfg.Sections() {
  178. for _, key := range section.Keys() {
  179. sectionName := strings.ToUpper(strings.Replace(section.Name(), ".", "_", -1))
  180. keyName := strings.ToUpper(strings.Replace(key.Name(), ".", "_", -1))
  181. envKey := fmt.Sprintf("GF_%s_%s", sectionName, keyName)
  182. envValue := os.Getenv(envKey)
  183. if len(envValue) > 0 {
  184. key.SetValue(envValue)
  185. if shouldRedactKey(envKey) {
  186. envValue = "*********"
  187. }
  188. if shouldRedactURLKey(envKey) {
  189. u, _ := url.Parse(envValue)
  190. ui := u.User
  191. if ui != nil {
  192. _, exists := ui.Password()
  193. if exists {
  194. u.User = url.UserPassword(ui.Username(), "-redacted-")
  195. envValue = u.String()
  196. }
  197. }
  198. }
  199. appliedEnvOverrides = append(appliedEnvOverrides, fmt.Sprintf("%s=%s", envKey, envValue))
  200. }
  201. }
  202. }
  203. }
  204. func applyCommandLineDefaultProperties(props map[string]string) {
  205. appliedCommandLineProperties = make([]string, 0)
  206. for _, section := range Cfg.Sections() {
  207. for _, key := range section.Keys() {
  208. keyString := fmt.Sprintf("default.%s.%s", section.Name(), key.Name())
  209. value, exists := props[keyString]
  210. if exists {
  211. key.SetValue(value)
  212. if shouldRedactKey(keyString) {
  213. value = "*********"
  214. }
  215. appliedCommandLineProperties = append(appliedCommandLineProperties, fmt.Sprintf("%s=%s", keyString, value))
  216. }
  217. }
  218. }
  219. }
  220. func applyCommandLineProperties(props map[string]string) {
  221. for _, section := range Cfg.Sections() {
  222. for _, key := range section.Keys() {
  223. keyString := fmt.Sprintf("%s.%s", section.Name(), key.Name())
  224. value, exists := props[keyString]
  225. if exists {
  226. key.SetValue(value)
  227. appliedCommandLineProperties = append(appliedCommandLineProperties, fmt.Sprintf("%s=%s", keyString, value))
  228. }
  229. }
  230. }
  231. }
  232. func getCommandLineProperties(args []string) map[string]string {
  233. props := make(map[string]string)
  234. for _, arg := range args {
  235. if !strings.HasPrefix(arg, "cfg:") {
  236. continue
  237. }
  238. trimmed := strings.TrimPrefix(arg, "cfg:")
  239. parts := strings.Split(trimmed, "=")
  240. if len(parts) != 2 {
  241. log.Fatal(3, "Invalid command line argument", arg)
  242. return nil
  243. }
  244. props[parts[0]] = parts[1]
  245. }
  246. return props
  247. }
  248. func makeAbsolute(path string, root string) string {
  249. if filepath.IsAbs(path) {
  250. return path
  251. }
  252. return filepath.Join(root, path)
  253. }
  254. func evalEnvVarExpression(value string) string {
  255. regex := regexp.MustCompile(`\${(\w+)}`)
  256. return regex.ReplaceAllStringFunc(value, func(envVar string) string {
  257. envVar = strings.TrimPrefix(envVar, "${")
  258. envVar = strings.TrimSuffix(envVar, "}")
  259. envValue := os.Getenv(envVar)
  260. // if env variable is hostname and it is empty use os.Hostname as default
  261. if envVar == "HOSTNAME" && envValue == "" {
  262. envValue, _ = os.Hostname()
  263. }
  264. return envValue
  265. })
  266. }
  267. func evalConfigValues() {
  268. for _, section := range Cfg.Sections() {
  269. for _, key := range section.Keys() {
  270. key.SetValue(evalEnvVarExpression(key.Value()))
  271. }
  272. }
  273. }
  274. func loadSpecifedConfigFile(configFile string) error {
  275. if configFile == "" {
  276. configFile = filepath.Join(HomePath, CustomInitPath)
  277. // return without error if custom file does not exist
  278. if !pathExists(configFile) {
  279. return nil
  280. }
  281. }
  282. userConfig, err := ini.Load(configFile)
  283. if err != nil {
  284. return fmt.Errorf("Failed to parse %v, %v", configFile, err)
  285. }
  286. userConfig.BlockMode = false
  287. for _, section := range userConfig.Sections() {
  288. for _, key := range section.Keys() {
  289. if key.Value() == "" {
  290. continue
  291. }
  292. defaultSec, err := Cfg.GetSection(section.Name())
  293. if err != nil {
  294. defaultSec, _ = Cfg.NewSection(section.Name())
  295. }
  296. defaultKey, err := defaultSec.GetKey(key.Name())
  297. if err != nil {
  298. defaultKey, _ = defaultSec.NewKey(key.Name(), key.Value())
  299. }
  300. defaultKey.SetValue(key.Value())
  301. }
  302. }
  303. configFiles = append(configFiles, configFile)
  304. return nil
  305. }
  306. func loadConfiguration(args *CommandLineArgs) {
  307. var err error
  308. // load config defaults
  309. defaultConfigFile := path.Join(HomePath, "conf/defaults.ini")
  310. configFiles = append(configFiles, defaultConfigFile)
  311. // check if config file exists
  312. if _, err := os.Stat(defaultConfigFile); os.IsNotExist(err) {
  313. fmt.Println("Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath")
  314. os.Exit(1)
  315. }
  316. // load defaults
  317. Cfg, err = ini.Load(defaultConfigFile)
  318. if err != nil {
  319. fmt.Println(fmt.Sprintf("Failed to parse defaults.ini, %v", err))
  320. os.Exit(1)
  321. return
  322. }
  323. Cfg.BlockMode = false
  324. // command line props
  325. commandLineProps := getCommandLineProperties(args.Args)
  326. // load default overrides
  327. applyCommandLineDefaultProperties(commandLineProps)
  328. // load specified config file
  329. err = loadSpecifedConfigFile(args.Config)
  330. if err != nil {
  331. initLogging()
  332. log.Fatal(3, err.Error())
  333. }
  334. // apply environment overrides
  335. applyEnvVariableOverrides()
  336. // apply command line overrides
  337. applyCommandLineProperties(commandLineProps)
  338. // evaluate config values containing environment variables
  339. evalConfigValues()
  340. // update data path and logging config
  341. DataPath = makeAbsolute(Cfg.Section("paths").Key("data").String(), HomePath)
  342. initLogging()
  343. }
  344. func pathExists(path string) bool {
  345. _, err := os.Stat(path)
  346. if err == nil {
  347. return true
  348. }
  349. if os.IsNotExist(err) {
  350. return false
  351. }
  352. return false
  353. }
  354. func setHomePath(args *CommandLineArgs) {
  355. if args.HomePath != "" {
  356. HomePath = args.HomePath
  357. return
  358. }
  359. HomePath, _ = filepath.Abs(".")
  360. // check if homepath is correct
  361. if pathExists(filepath.Join(HomePath, "conf/defaults.ini")) {
  362. return
  363. }
  364. // try down one path
  365. if pathExists(filepath.Join(HomePath, "../conf/defaults.ini")) {
  366. HomePath = filepath.Join(HomePath, "../")
  367. }
  368. }
  369. var skipStaticRootValidation bool = false
  370. func validateStaticRootPath() error {
  371. if skipStaticRootValidation {
  372. return nil
  373. }
  374. if _, err := os.Stat(path.Join(StaticRootPath, "css")); err == nil {
  375. return nil
  376. }
  377. if _, err := os.Stat(StaticRootPath + "_gen/css"); err == nil {
  378. StaticRootPath = StaticRootPath + "_gen"
  379. return nil
  380. }
  381. return fmt.Errorf("Failed to detect generated css or javascript files in static root (%s), have you executed default grunt task?", StaticRootPath)
  382. }
  383. func NewConfigContext(args *CommandLineArgs) error {
  384. setHomePath(args)
  385. loadConfiguration(args)
  386. Env = Cfg.Section("").Key("app_mode").MustString("development")
  387. InstanceName = Cfg.Section("").Key("instance_name").MustString("unknown_instance_name")
  388. PluginsPath = makeAbsolute(Cfg.Section("paths").Key("plugins").String(), HomePath)
  389. server := Cfg.Section("server")
  390. AppUrl, AppSubUrl = parseAppUrlAndSubUrl(server)
  391. Protocol = HTTP
  392. if server.Key("protocol").MustString("http") == "https" {
  393. Protocol = HTTPS
  394. CertFile = server.Key("cert_file").String()
  395. KeyFile = server.Key("cert_key").String()
  396. }
  397. if server.Key("protocol").MustString("http") == "socket" {
  398. Protocol = SOCKET
  399. SocketPath = server.Key("socket").String()
  400. }
  401. Domain = server.Key("domain").MustString("localhost")
  402. HttpAddr = server.Key("http_addr").MustString(DEFAULT_HTTP_ADDR)
  403. HttpPort = server.Key("http_port").MustString("3000")
  404. RouterLogging = server.Key("router_logging").MustBool(false)
  405. EnableGzip = server.Key("enable_gzip").MustBool(false)
  406. EnforceDomain = server.Key("enforce_domain").MustBool(false)
  407. StaticRootPath = makeAbsolute(server.Key("static_root_path").String(), HomePath)
  408. if err := validateStaticRootPath(); err != nil {
  409. return err
  410. }
  411. // read data proxy settings
  412. dataproxy := Cfg.Section("dataproxy")
  413. DataProxyLogging = dataproxy.Key("logging").MustBool(false)
  414. // read security settings
  415. security := Cfg.Section("security")
  416. SecretKey = security.Key("secret_key").String()
  417. LogInRememberDays = security.Key("login_remember_days").MustInt()
  418. CookieUserName = security.Key("cookie_username").String()
  419. CookieRememberName = security.Key("cookie_remember_name").String()
  420. DisableGravatar = security.Key("disable_gravatar").MustBool(true)
  421. // read snapshots settings
  422. snapshots := Cfg.Section("snapshots")
  423. ExternalSnapshotUrl = snapshots.Key("external_snapshot_url").String()
  424. ExternalSnapshotName = snapshots.Key("external_snapshot_name").String()
  425. ExternalEnabled = snapshots.Key("external_enabled").MustBool(true)
  426. SnapShotRemoveExpired = snapshots.Key("snapshot_remove_expired").MustBool(true)
  427. SnapShotTTLDays = snapshots.Key("snapshot_TTL_days").MustInt(90)
  428. // read data source proxy white list
  429. DataProxyWhiteList = make(map[string]bool)
  430. for _, hostAndIp := range util.SplitString(security.Key("data_source_proxy_whitelist").String()) {
  431. DataProxyWhiteList[hostAndIp] = true
  432. }
  433. // admin
  434. AdminUser = security.Key("admin_user").String()
  435. AdminPassword = security.Key("admin_password").String()
  436. users := Cfg.Section("users")
  437. AllowUserSignUp = users.Key("allow_sign_up").MustBool(true)
  438. AllowUserOrgCreate = users.Key("allow_org_create").MustBool(true)
  439. AutoAssignOrg = users.Key("auto_assign_org").MustBool(true)
  440. AutoAssignOrgRole = users.Key("auto_assign_org_role").In("Editor", []string{"Editor", "Admin", "Read Only Editor", "Viewer"})
  441. VerifyEmailEnabled = users.Key("verify_email_enabled").MustBool(false)
  442. LoginHint = users.Key("login_hint").String()
  443. DefaultTheme = users.Key("default_theme").String()
  444. ExternalUserMngLinkUrl = users.Key("external_manage_link_url").String()
  445. ExternalUserMngLinkName = users.Key("external_manage_link_name").String()
  446. ExternalUserMngInfo = users.Key("external_manage_info").String()
  447. // auth
  448. auth := Cfg.Section("auth")
  449. DisableLoginForm = auth.Key("disable_login_form").MustBool(false)
  450. DisableSignoutMenu = auth.Key("disable_signout_menu").MustBool(false)
  451. // anonymous access
  452. AnonymousEnabled = Cfg.Section("auth.anonymous").Key("enabled").MustBool(false)
  453. AnonymousOrgName = Cfg.Section("auth.anonymous").Key("org_name").String()
  454. AnonymousOrgRole = Cfg.Section("auth.anonymous").Key("org_role").String()
  455. // auth proxy
  456. authProxy := Cfg.Section("auth.proxy")
  457. AuthProxyEnabled = authProxy.Key("enabled").MustBool(false)
  458. AuthProxyHeaderName = authProxy.Key("header_name").String()
  459. AuthProxyHeaderProperty = authProxy.Key("header_property").String()
  460. AuthProxyAutoSignUp = authProxy.Key("auto_sign_up").MustBool(true)
  461. AuthProxyLdapSyncTtl = authProxy.Key("ldap_sync_ttl").MustInt()
  462. AuthProxyWhitelist = authProxy.Key("whitelist").String()
  463. // basic auth
  464. authBasic := Cfg.Section("auth.basic")
  465. BasicAuthEnabled = authBasic.Key("enabled").MustBool(true)
  466. // PhantomJS rendering
  467. ImagesDir = filepath.Join(DataPath, "png")
  468. PhantomDir = filepath.Join(HomePath, "vendor/phantomjs")
  469. analytics := Cfg.Section("analytics")
  470. ReportingEnabled = analytics.Key("reporting_enabled").MustBool(true)
  471. CheckForUpdates = analytics.Key("check_for_updates").MustBool(true)
  472. GoogleAnalyticsId = analytics.Key("google_analytics_ua_id").String()
  473. GoogleTagManagerId = analytics.Key("google_tag_manager_id").String()
  474. ldapSec := Cfg.Section("auth.ldap")
  475. LdapEnabled = ldapSec.Key("enabled").MustBool(false)
  476. LdapConfigFile = ldapSec.Key("config_file").String()
  477. LdapAllowSignup = ldapSec.Key("allow_sign_up").MustBool(true)
  478. alerting := Cfg.Section("alerting")
  479. AlertingEnabled = alerting.Key("enabled").MustBool(true)
  480. ExecuteAlerts = alerting.Key("execute_alerts").MustBool(true)
  481. readSessionConfig()
  482. readSmtpSettings()
  483. readQuotaSettings()
  484. if VerifyEmailEnabled && !Smtp.Enabled {
  485. log.Warn("require_email_validation is enabled but smpt is disabled")
  486. }
  487. // check old key name
  488. GrafanaComUrl = Cfg.Section("grafana_net").Key("url").MustString("")
  489. if GrafanaComUrl == "" {
  490. GrafanaComUrl = Cfg.Section("grafana_com").Key("url").MustString("https://grafana.com")
  491. }
  492. imageUploadingSection := Cfg.Section("external_image_storage")
  493. ImageUploadProvider = imageUploadingSection.Key("provider").MustString("internal")
  494. return nil
  495. }
  496. func readSessionConfig() {
  497. sec := Cfg.Section("session")
  498. SessionOptions = session.Options{}
  499. SessionOptions.Provider = sec.Key("provider").In("memory", []string{"memory", "file", "redis", "mysql", "postgres", "memcache"})
  500. SessionOptions.ProviderConfig = strings.Trim(sec.Key("provider_config").String(), "\" ")
  501. SessionOptions.CookieName = sec.Key("cookie_name").MustString("grafana_sess")
  502. SessionOptions.CookiePath = AppSubUrl
  503. SessionOptions.Secure = sec.Key("cookie_secure").MustBool()
  504. SessionOptions.Gclifetime = Cfg.Section("session").Key("gc_interval_time").MustInt64(86400)
  505. SessionOptions.Maxlifetime = Cfg.Section("session").Key("session_life_time").MustInt64(86400)
  506. SessionOptions.IDLength = 16
  507. if SessionOptions.Provider == "file" {
  508. SessionOptions.ProviderConfig = makeAbsolute(SessionOptions.ProviderConfig, DataPath)
  509. os.MkdirAll(path.Dir(SessionOptions.ProviderConfig), os.ModePerm)
  510. }
  511. if SessionOptions.CookiePath == "" {
  512. SessionOptions.CookiePath = "/"
  513. }
  514. }
  515. func initLogging() {
  516. // split on comma
  517. LogModes = strings.Split(Cfg.Section("log").Key("mode").MustString("console"), ",")
  518. // also try space
  519. if len(LogModes) == 1 {
  520. LogModes = strings.Split(Cfg.Section("log").Key("mode").MustString("console"), " ")
  521. }
  522. LogsPath = makeAbsolute(Cfg.Section("paths").Key("logs").String(), HomePath)
  523. log.ReadLoggingConfig(LogModes, LogsPath, Cfg)
  524. }
  525. func LogConfigurationInfo() {
  526. var text bytes.Buffer
  527. for _, file := range configFiles {
  528. logger.Info("Config loaded from", "file", file)
  529. }
  530. if len(appliedCommandLineProperties) > 0 {
  531. for _, prop := range appliedCommandLineProperties {
  532. logger.Info("Config overridden from command line", "arg", prop)
  533. }
  534. }
  535. if len(appliedEnvOverrides) > 0 {
  536. text.WriteString("\tEnvironment variables used:\n")
  537. for _, prop := range appliedEnvOverrides {
  538. logger.Info("Config overridden from Environment variable", "var", prop)
  539. }
  540. }
  541. logger.Info("Path Home", "path", HomePath)
  542. logger.Info("Path Data", "path", DataPath)
  543. logger.Info("Path Logs", "path", LogsPath)
  544. logger.Info("Path Plugins", "path", PluginsPath)
  545. }