Skip to content

Commit

Permalink
Change log level of GetSessionFromCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
André Hahn committed Sep 17, 2019
1 parent ec194d4 commit 26e1c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.go
Expand Up @@ -524,7 +524,7 @@ func Error(err error, code string, metadata ...map[string]string) *errors.Error
func GetSessionFromCtx(ctx context.Context) *session.Session {
sessionVal := ctx.Value(constants.SessionCtxKey)
if sessionVal == nil {
logger.Log.Warn("ctx doesn't contain a session, are you calling GetSessionFromCtx from inside a remote?")
logger.Log.Debug("ctx doesn't contain a session, are you calling GetSessionFromCtx from inside a remote?")
return nil
}
return sessionVal.(*session.Session)
Expand Down

0 comments on commit 26e1c39

Please sign in to comment.