Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

logging in syslog #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion haproxy/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ global
stats socket {{.SocketPath}} mode 600 level admin expose-fd listeners
stats timeout 2m
tune.ssl.default-dh-param 1024
log /dev/log local0 info alert
nbproc 1
nbthread {{.NbThread}}
log-tag haproxy_sidecar

userlist controller
user {{.DataplaneUser}} insecure-password {{.DataplanePass}}

defaults
mode http
log global
log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq %bq %hr %hs %{+Q}r %U"
`

const spoeConfTmpl = `
Expand Down Expand Up @@ -107,7 +113,7 @@ func newHaConfig(baseDir string, sd *lib.Shutdown) (*haConfig, error) {
return nil, err
}
defer cfgFile.Close()

log.Info(" !!! Config HAProxy Path :::- ", cfg.HAProxy)
dataplanePass = createRandomString()

err = tmpl.Execute(cfgFile, baseParams{
Expand Down