Fix Logger interface.

This commit is contained in:
Kyle Isom
2017-11-21 12:19:38 -08:00
parent d6c5360a06
commit afef3eea62
2 changed files with 4 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ type Logger interface {
Status() error
// Close gives the Logger the opportunity to perform any cleanup.
Close()
Close() error
// Log messages consist of four components:
//
@@ -276,4 +276,4 @@ func (lw *LogWriter) SetLevel(l Level) {
}
// Close is a no-op that satisfies the Logger interface.
func (lw *LogWriter) Close() {}
func (lw *LogWriter) Close() error { return nil }