Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurvir committed Apr 9, 2024
1 parent dc038d9 commit 41f4546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Build, Push and Deploy

on:
push:
branches:
branches-ignore:
- main

jobs:
Expand All @@ -28,7 +28,7 @@ jobs:
echo "GOOGLE_MAPS_API_KEY=${{secrets.GOOGLE_MAPS_API_KEY}}" >> .env
echo "SERVER_URL=${{secrets.SERVER_URL}}" >> .env
echo "DEVELOPER_MODE_ON=${{secrets.DEVELOPER_MODE_ON}}" >> .env
- name: Create SSH key file
run: echo -e "${{ secrets.EC2_SSH_KEY }}" > ~/ec2_key
env:
Expand Down
2 changes: 2 additions & 0 deletions services/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class Actions {

async send_message(recipient, message, media_url=null) {
try {

logger.info(`Sending message to ${recipient} with media : ${media_url}| Developer mode : ${process.env.DEVELOPER_MODE_ON}`);
let body = {
body: message,
from: `whatsapp:${twilioNumber}`,
Expand Down

0 comments on commit 41f4546

Please sign in to comment.