log on bad requests

This commit is contained in:
olemorud
2022-12-07 19:50:47 +01:00
parent e8c7eb9502
commit c0866417ba

View File

@@ -50,5 +50,7 @@ func Coffee(writer http.ResponseWriter, request *http.Request) {
if incoming_msg.Token == mattermost_token || incoming_msg.Token == test_token {
json.NewEncoder(writer).Encode(&reply{Response_type: "comment", Text: "@omorud"})
} else {
log.Printf("Invalid request received with token: %v", incoming_msg.Token)
}
}