From 016e5b4b487b0ddaa85716db028b65f03ece15d2 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 28 七月 2020 20:37:16 +0800
Subject: [PATCH] rm log

---
 extend/config/config.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extend/config/config.go b/extend/config/config.go
index 3912a95..54b3bf9 100644
--- a/extend/config/config.go
+++ b/extend/config/config.go
@@ -19,11 +19,11 @@
 
 var ServerMap = make(map[string]string,0)
 var NgxMap = make(map[string]string,0)
-func Init(env string) {
+func Init(env string, configPath string) {
 	var err error
 	viper.SetConfigType("yaml")
 	viper.SetConfigName(env)
-	viper.AddConfigPath("./config/")
+	viper.AddConfigPath(configPath)
 	err = viper.ReadInConfig()
 	if err != nil {
 		log.Fatal("error on parsing configuration file",err)

--
Gitblit v1.8.0