Skip to content

Commit

Permalink
chore: add quotes to log vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Sep 23, 2022
1 parent 5aa44ae commit ac45a34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/events/http/HttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export default class HttpServer {
!this.#apiKeysValues.has(apiKey)
) {
log.debug(
`Method ${method} of function ${functionKey} token ${apiKey} not valid`,
`Method '${method}' of function '${functionKey}' token '${apiKey}' not valid.`,
)

return errorResponse()
Expand All @@ -454,13 +454,13 @@ export default class HttpServer {

if (usageIdentifierKey !== this.#options.apiKey) {
log.debug(
`Method ${method} of function ${functionKey} token ${usageIdentifierKey} not valid`,
`Method '${method}' of function '${functionKey}' token '${usageIdentifierKey}' not valid.`,
)

return errorResponse()
}
} else {
log.debug(`Missing x-api-key on private function ${functionKey}`)
log.debug(`Missing 'x-api-key' on private function '${functionKey}'.`)

return errorResponse()
}
Expand Down

0 comments on commit ac45a34

Please sign in to comment.