diff --git a/deploy/lambda/slack/slack.py b/deploy/lambda/slack/slack.py
index 50c0ac5b030a99e042f9c3662add3c60bd5c0145..471178003f4fe77537127a1c86573403d1f0a0e9 100644
--- a/deploy/lambda/slack/slack.py
+++ b/deploy/lambda/slack/slack.py
@@ -15,15 +15,17 @@ def lambda_handler(event, context):
 "\t- New State Value : "+m.get('NewStateValue')+"\n"+ \
 "\t- New State Reason : "+m.get('NewStateReason')+"\n"+ \
 "\t- New State Time : "+m.get('StateChangeTime')+"\n")
+    print("Number of messages : " +str(len(text)))
     msg = {
         "text": "\n-------\n".join(text)
     }
     
     encoded_msg = json.dumps(msg).encode('utf-8')
     resp = http.request('POST',url, body=encoded_msg)
-    print(json.dumps({
-        "messages": messages,
+    ret = json.dumps({
+        "body": {"messages":messages},
         "status_code": resp.status,
         "response": resp.data.decode("utf-8")
-        })
-    )
\ No newline at end of file
+    })
+    print(ret)
+    return ret
\ No newline at end of file