Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 1d96e97

Browse files
committed
added logging
1 parent d5da322 commit 1d96e97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

comment-service/app/http/controllers/controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,13 @@ func ListCommentsFromUser(connection *sql.DB, cnf config.Config) negroni.Handler
119119
w.Write([]byte(string("token is mandatory")))
120120
return
121121
}
122-
123122
tok, err := jwt.Parse(queryToken, func(t *jwt.Token) (interface{}, error) {
124123
return []byte(cnf.SecretKey), nil
125124
})
126125

127126
if err != nil {
127+
logrus.Info(err)
128+
logrus.Info(err.Error())
128129
util.SendErrorMessage(w, "You are not authorized")
129130
return
130131
}

0 commit comments

Comments
 (0)