From cd94900f191e35d4a584bf3047287d3df0841d4d Mon Sep 17 00:00:00 2001 From: liangzy Date: Wed, 6 May 2020 15:34:47 +0800 Subject: [PATCH] =?UTF-8?q?v1.3.3=20=E6=9A=B4=E9=9C=B2=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- funtion.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/funtion.go b/funtion.go index 8dd5b50..3c383ff 100644 --- a/funtion.go +++ b/funtion.go @@ -55,7 +55,7 @@ var adatperSetMapper = map[Adapter]func(l *Logger, level Level) error{ }, } -func GenAliConfig(level Level) AliLSConfig { +func GenAliConfig(level Level) *AliLSConfig { var project string = "gaore-app-logstore" var endpoint string @@ -65,7 +65,7 @@ func GenAliConfig(level Level) AliLSConfig { endpoint = project + ".cn-shenzhen.log.aliyuncs.com" } - c := AliLSConfig{ + c := &AliLSConfig{ Project: project, Endpoint: endpoint, KeyID: "LTAI4GCHwcqtrFD4DHRHxR4k", @@ -79,13 +79,13 @@ func GenAliConfig(level Level) AliLSConfig { return c } -func GenEsConfig(level Level) EsConfig { +func GenEsConfig(level Level) *EsConfig { dsn := "http://es-cn-0pp1mm3hq000dnbh4.public.elasticsearch.aliyuncs.com:9200/" if os.Getenv(envkey) == "prod" || os.Getenv(envkey) == "" || os.Getenv(envkey) == "gray" { dsn = "http://es-cn-0pp1mm3hq000dnbh4.elasticsearch.aliyuncs.com:9200/" } - c := EsConfig{ + c := &EsConfig{ Username: "elastic", Password: "Hellogaore@", Dsn: dsn,