mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-15 20:02:15 +01:00
typos in godoc
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user