File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ func WithTimestamp(t time.Time) LoggerOption {
41
41
}
42
42
}
43
43
44
- // NewWith creates logger with reasonable defaults for Lambda functions:
44
+ // New creates logger with reasonable defaults for Lambda functions:
45
45
// - Prints to os.Stdout.
46
46
// - Context based on Lambda environment variables.
47
47
// - Timestamp set to the time when NewWith was called.
48
- // Specify NewOptions to customize the logger.
48
+ // Specify LoggerOptions to customize the logger.
49
49
func New (opts ... LoggerOption ) * Logger {
50
50
values := make (map [string ]interface {})
51
51
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ func TestNew(t *testing.T) {
46
46
47
47
// loggersEqual returns a non-nil error if the loggers do not match.
48
48
// Currently it only checks that the loggers' output writer and timestamp match.
49
- // TODO: expand the checks here as more NewOptions are added.
50
49
func loggersEqual (actual , expected * Logger ) error {
51
50
if actual .out != expected .out {
52
51
return fmt .Errorf ("output does not match" )
You can’t perform that action at this time.
0 commit comments