Skip to content

Commit

Permalink
fix(celery): log file message
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamad-liyaghi committed Aug 11, 2024
1 parent f80d13c commit 88072ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/scripts/celery-beat.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/sh

# shellcheck disable=SC2039
# shellcheck disable=SC3010
if [[ $ENVIRONMENT == "PRODUCTION" ]]; then
LOGLEVEL="CRITICAL"
else
LOGLEVEL="DEBUG"
fi

echo "Creating Log File"
echo "Preparing Log File"
if [ ! -f /var/log/celery-beat/info.log ]; then
touch /var/log/celery-beat/info.log
fi
Expand Down
5 changes: 3 additions & 2 deletions docker/scripts/celery.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/sh

# shellcheck disable=SC2039
# shellcheck disable=SC3010
if [[ $ENVIRONMENT == "PRODUCTION" ]]; then
LOGLEVEL="CRITICAL"
else
LOGLEVEL="DEBUG"
fi
echo "Creating Log File"

echo "Preparing Log File"
if [ ! -f /var/log/celery/info.log ]; then
touch /var/log/celery/info.log
fi
Expand Down

0 comments on commit 88072ec

Please sign in to comment.