atharva-nlp commited on
Commit
fb7cd94
·
verified ·
1 Parent(s): 10c98c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -2,6 +2,9 @@ import os
2
  from slack_bolt import App
3
  from download_judgements import fetch_judgements
4
 
 
 
 
5
  # Initializes your app with your bot token and signing secret
6
  app = App(
7
  token=os.environ.get("SLACK_BOT_TOKEN"),
@@ -11,6 +14,7 @@ app = App(
11
  @app.command("/get-case-digest")
12
  def repeat_text(ack, respond, command):
13
  # Acknowledge command request
 
14
  ack()
15
  cases = fetch_judgements()
16
  print(cases)
 
2
  from slack_bolt import App
3
  from download_judgements import fetch_judgements
4
 
5
+ logging.basicConfig(stream=sys.stdout, level=logging.INFO)
6
+ logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
7
+
8
  # Initializes your app with your bot token and signing secret
9
  app = App(
10
  token=os.environ.get("SLACK_BOT_TOKEN"),
 
14
  @app.command("/get-case-digest")
15
  def repeat_text(ack, respond, command):
16
  # Acknowledge command request
17
+ logging.info('Sending ack')
18
  ack()
19
  cases = fetch_judgements()
20
  print(cases)