File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import (
1919 "github.com/lomik/zapwriter"
2020)
2121
22+ // App is an application object used in main
2223type App struct {
2324 sync.RWMutex
2425 Config * Config
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
1515)
1616
1717const (
18+ // MetricEndpointLocal used to send metrics in the carbon-clickhouse itself
1819 MetricEndpointLocal = "local"
1920)
2021
@@ -192,13 +193,14 @@ func NewConfig() *Config {
192193 return cfg
193194}
194195
196+ // NewLoggingConfig returns the zapwriter.Config with logging into "/var/log/carbon-clickhouse/carbon-clickhouse.log"
195197func NewLoggingConfig () zapwriter.Config {
196198 cfg := zapwriter .NewConfig ()
197199 cfg .File = "/var/log/carbon-clickhouse/carbon-clickhouse.log"
198200 return cfg
199201}
200202
201- // PrintConfig ...
203+ // PrintDefaultConfig ...
202204func PrintDefaultConfig () error {
203205 cfg := NewConfig ()
204206 buf := new (bytes.Buffer )
You can’t perform that action at this time.
0 commit comments