Skip to content

Commit

Permalink
Fixup - use format type in default_logger to setup logger
Browse files Browse the repository at this point in the history
  • Loading branch information
carthewd committed Jul 30, 2019
1 parent ec932c6 commit d05e907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/logging/default_logger.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 the Velero contributors.
Copyright 2019 the Velero contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -36,7 +36,7 @@ func DefaultHooks() []logrus.Hook {
func DefaultLogger(level logrus.Level, format Format) *logrus.Logger {
logger := logrus.New()

if (string(format)) == "json" {
if format == FormatJSON {
logger.Formatter = new(logrus.JSONFormatter)
}

Expand Down

0 comments on commit d05e907

Please sign in to comment.