Match the interface to logrus implementation

parent d1c8f8d0
......@@ -6,8 +6,8 @@ package log
// Logger serves as an adapter interface for logger libraries
// so that dex does not depend on any of them directly.
type Logger interface {
Info(msg string)
Warn(msg string)
Info(args ...interface{})
Warn(args ...interface{})
Debugf(format string, args ...interface{})
Infof(format string, args ...interface{})
......
......@@ -15,13 +15,13 @@ func NewLogrusLogger(logger logrus.FieldLogger) *LogrusLogger {
}
// Info logs an Info level event.
func (l *LogrusLogger) Info(msg string) {
l.logger.Info(msg)
func (l *LogrusLogger) Info(args ...interface{}) {
l.logger.Info(args...)
}
// Warn logs a Warn level event.
func (l *LogrusLogger) Warn(msg string) {
l.logger.Warn(msg)
func (l *LogrusLogger) Warn(args ...interface{}) {
l.logger.Warn(args...)
}
// Debugf formats and logs a Debug level event.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment