typos in godoc

This commit is contained in:
Julien Neuhart
2018-03-30 13:13:55 +02:00
parent 6b0fb2c3f9
commit a4ee269fbc
2 changed files with 3 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ func (e *wrongLoggingLevelError) Error() string {
} }
// getLoggingLevelFromFileConfig returns a logrus level if a matching was found // getLoggingLevelFromFileConfig returns a logrus level if a matching was found
// with the one defined by ther user. // with the one defined by the user.
// If no match, throws a wrongLoggingLevelError. // If no match, throws a wrongLoggingLevelError.
func getLoggingLevelFromFileConfig(c *fileConfig) (logrus.Level, error) { func getLoggingLevelFromFileConfig(c *fileConfig) (logrus.Level, error) {
l, ok := levels[c.Logs.Level] l, ok := levels[c.Logs.Level]
@@ -198,7 +198,7 @@ func (e *wrongLoggingFormatError) Error() string {
} }
// getLoggingLevelFromFileConfig returns a logrus Formatter if a matching was found // getLoggingLevelFromFileConfig returns a logrus Formatter if a matching was found
// with the format defined by ther user. // with the format defined by the user.
// If no match, throws a wrongLoggingFormatError. // If no match, throws a wrongLoggingFormatError.
func getLoggingFormatterFromFileConfig(c *fileConfig) (logrus.Formatter, error) { func getLoggingFormatterFromFileConfig(c *fileConfig) (logrus.Formatter, error) {
f, ok := formatters[c.Logs.Format] f, ok := formatters[c.Logs.Format]

View File

@@ -12,7 +12,7 @@ type logger struct {
logger *logrus.Logger logger *logrus.Logger
} }
// log is our logger instance used accross the application. // log is our logger instance used across the application.
var log = newLogger() var log = newLogger()
// newLogger instantiates a logger instance with default values. // newLogger instantiates a logger instance with default values.