Function renaming
Renamed 'GetConfig()' to 'getConfig()', so that it is not exposed outside the package.
This commit is contained in:
parent
027adef642
commit
0ecbe55398
2 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ func BuildLogger(prefix string, logConfigFilename string) error {
|
|||
head := &baseElektronLogger{baseLogData: b}
|
||||
|
||||
// Read configuration from yaml.
|
||||
if config, err := GetConfig(logConfigFilename); err != nil {
|
||||
if config, err := getConfig(logConfigFilename); err != nil {
|
||||
return errors.Wrap(err, "Failed to build logger")
|
||||
} else {
|
||||
cLog := newConsoleLogger(config, b, CONSOLE, prefix, logger, logDir)
|
||||
|
|
|
@ -48,7 +48,7 @@ type loggerConfig struct {
|
|||
Format []string `yaml:"format"`
|
||||
}
|
||||
|
||||
func GetConfig(logConfigFilename string) (*loggerConfig, error) {
|
||||
func getConfig(logConfigFilename string) (*loggerConfig, error) {
|
||||
|
||||
yamlFile, err := ioutil.ReadFile(logConfigFilename)
|
||||
if err != nil {
|
||||
|
|
Reference in a new issue