This is better than what I had copied from the example a few commits
ago because this properly logs through the python logging system, (so
the error message will appear in the Apache log file).
slack_events = SlackEventAdapter(slack_signing_secret, "/slack/events", app)
slack_client = WebClient(slack_bot_token)
+@slack_events.on("error")
+def handle_error(error):
+ app.logger.error("Error from Slack: " + str(error))
+
if __name__ == '__main__':
app.run(debug=True)