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

Unified Diff: impl/prod/logger.go

Issue 1542263003: Use prod logger's user context to read logging level (Closed) Base URL: https://github.com/luci/gae.git@nil_memcache
Patch Set: Created 5 years 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 | « impl/prod/everything_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/prod/logger.go
diff --git a/impl/prod/logger.go b/impl/prod/logger.go
index 99e6324d66ccc775e3a8cf5a662cf60437e6989c..bc8be25b66e4af366a0d0d80035a73a19385b875 100644
--- a/impl/prod/logger.go
+++ b/impl/prod/logger.go
@@ -40,7 +40,7 @@ func (gl *loggerImpl) Errorf(format string, args ...interface{}) {
// TODO(riannucci): prefix with caller's code location.
func (gl *loggerImpl) LogCall(l logging.Level, calldepth int, format string, args []interface{}) {
- if gl.aeCtx == nil || !logging.IsLogging(gl.aeCtx, l) {
+ if gl.aeCtx == nil || !logging.IsLogging(gl.ic, l) {
iannucci 2015/12/23 16:34:43 If you look below (line 62), we use the ic context
return
}
« no previous file with comments | « impl/prod/everything_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698