From f68c02a2a75725720782c6f55a93433cced0de80 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 19 十二月 2019 11:07:06 +0800
Subject: [PATCH] add log
---
extend/config/config.go | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/extend/config/config.go b/extend/config/config.go
index a62cdfa..41cb8bb 100644
--- a/extend/config/config.go
+++ b/extend/config/config.go
@@ -29,6 +29,7 @@
SudoPassword string `mapstructure: "sudoPassword"` //绯荤粺瀵嗙爜
SysThresholds []threshold `mapstructure: "sysThresholds"`
PTZSpeed int `mapstructure: "ptzSpeed"` // 浜戝彴绉诲姩閫熷害
+ PatchPath string `mapstructure:"patchPath"`//绯荤粺鏇存柊鍖呰矾寰�
}
var Server = &server{}
@@ -86,7 +87,7 @@
viper.AddConfigPath("/opt/vasystem/config/")
err = viper.ReadInConfig()
if err != nil {
- log.Fatal("error on parsing configuration file")
+ log.Fatal("error on parsing configuration file",err)
}
viper.UnmarshalKey("es", EsInfo)
viper.UnmarshalKey("server", Server)
--
Gitblit v1.8.0