You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ch...@apache.org on 2021/07/27 07:31:45 UTC
[apisix-dashboard] branch master updated: feat: add more detailed
log messages to authentication.go (#1985)
This is an automated email from the ASF dual-hosted git repository.
chenjunxu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 33c735e feat: add more detailed log messages to authentication.go (#1985)
33c735e is described below
commit 33c735ec314a82d5c8d67e8fb61ea5e8450ff9ce
Author: Aadhav Vignesh <53...@users.noreply.github.com>
AuthorDate: Tue Jul 27 13:01:37 2021 +0530
feat: add more detailed log messages to authentication.go (#1985)
---
api/internal/filter/authentication.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/api/internal/filter/authentication.go b/api/internal/filter/authentication.go
index 04ba545..7b565f2 100644
--- a/api/internal/filter/authentication.go
+++ b/api/internal/filter/authentication.go
@@ -66,6 +66,7 @@ func (mw *AuthenticationMiddleware) Handle(ctx droplet.Context) error {
if err != nil || token == nil || !token.Valid {
log.Warnf("token validate failed: %s", err)
+ log.Warn("please check the secret in conf.yaml")
ctx.SetOutput(&data.SpecCodeResponse{StatusCode: http.StatusUnauthorized, Response: response})
return nil
}