Skip to content

Commit 8e60a63

Browse files
committed
Use SlackBolt logger for app middleware
1 parent adf2bf1 commit 8e60a63

File tree

1 file changed

+2
-2
lines changed
  • packages/slackBotFunction

1 file changed

+2
-2
lines changed

packages/slackBotFunction/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141

4242

4343
@app.middleware
44-
def log_request(slack_logger, body, next):
44+
def log_request(logger, body, next): # Use SlackBolt logger
4545
"""
4646
SlackBolt library logging.
4747
"""
48-
logger.debug("Slack request received", extra={"body": body})
48+
logger.debug(body)
4949
return next()
5050

5151

0 commit comments

Comments
 (0)