mirror of
https://github.com/wneessen/logranger.git
synced 2024-11-22 12:50:50 +01:00
Correct spelling errors in error messages
Fixed spelling errors in error messages on server.go and listener.go files. The word "initalize" has been corrected to "initialize" in both files.
This commit is contained in:
parent
0a3f8780c5
commit
c9f7726473
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ func NewListener(c *Config) (net.Listener, error) {
|
||||||
return nil, fmt.Errorf("failed to initialize listener: unknown listener type in config")
|
return nil, fmt.Errorf("failed to initialize listener: unknown listener type in config")
|
||||||
}
|
}
|
||||||
if lerr != nil {
|
if lerr != nil {
|
||||||
return nil, fmt.Errorf("failed to initalize listener: %w", lerr)
|
return nil, fmt.Errorf("failed to initialize listener: %w", lerr)
|
||||||
}
|
}
|
||||||
return l, nil
|
return l, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ func (s *Server) Run() error {
|
||||||
}
|
}
|
||||||
p, err := parsesyslog.New(s.conf.internal.ParserType)
|
p, err := parsesyslog.New(s.conf.internal.ParserType)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to initalize syslog parser: %w", err)
|
return fmt.Errorf("failed to initialize syslog parser: %w", err)
|
||||||
}
|
}
|
||||||
s.parser = p
|
s.parser = p
|
||||||
return s.RunWithListener(l)
|
return s.RunWithListener(l)
|
||||||
|
|
Loading…
Reference in a new issue