Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: common/logging/gologger/logger.go

Issue 1622553005: Remove log filtering and add stringsetflag. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: error on empty Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/logging/filter.go ('k') | common/meter/meter.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/logging/gologger/logger.go
diff --git a/common/logging/gologger/logger.go b/common/logging/gologger/logger.go
index 8c5f1ef78ddff98b0ca74ca7ce97f933195cf6fe..53c6adcc2b67912b986cf682f5a2b4067f0ccd2f 100644
--- a/common/logging/gologger/logger.go
+++ b/common/logging/gologger/logger.go
@@ -81,7 +81,7 @@ func (li *loggerImpl) LogCall(l logging.Level, calldepth int, format string, arg
// '%' characters in the fields string are escaped so they can't be interpreted
// as format characters when appended to the initial format string.
func formatWithFields(format string, fields logging.Fields, args []interface{}) string {
- fieldString := strings.Replace(fields.FieldString(true), "%", "%%", -1)
+ fieldString := strings.Replace(fields.String(), "%", "%%", -1)
buf := bytes.Buffer{}
buf.Grow(len(format) + logMessageFieldPadding + len(fieldString))
« no previous file with comments | « common/logging/filter.go ('k') | common/meter/meter.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698