Skip to content

Commit b741532

Browse files
committed
Add initialization of logging log collector attributes
1 parent a377e4c commit b741532

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ require (
3939
golang.org/x/text v0.17.0 // indirect
4040
gopkg.in/yaml.v3 v3.0.1 // indirect
4141
)
42+
43+
replace github.com/dmwm/auth-proxy-server/logging => /Users/vk/Work/Languages/Go/gopath/src/github.com/dmwm/auth-proxy-server/logging

server.go

+5
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ func Server(config string, port, metricsPort int, logFile string, useX509, scito
9898
// initialize cmsauth module
9999
CMSAuth.Init(Config.Hmac)
100100

101+
// initialize log collector attributes
102+
logging.CollectorURL = Config.CollectorURL
103+
logging.CollectorLogin = Config.CollectorLogin
104+
logging.CollectorPassword = Config.CollectorPassword
105+
101106
// start our servers
102107
if useX509 {
103108
if Config.CricURL != "" || Config.CricFile != "" {

0 commit comments

Comments
 (0)