Skip to content

Commit

Permalink
Change guard.log to /app/logs/guard.log
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbeevip committed Nov 7, 2023
1 parent 5861f00 commit 9f23eb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ENV VIRTUAL_ENV=/app/.venv \
PATH="/app/.venv/bin:$PATH"

WORKDIR /app

RUN mkdir -p /app/logs
COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
COPY --from=builder /app/src/ /app/src
COPY --from=builder /app/main.py /app/main.py
Expand Down
2 changes: 1 addition & 1 deletion src/aws_lightsail_guard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

from dotenv import load_dotenv

logging.basicConfig(filename='guard.log', filemode='a', level=logging.INFO,
logging.basicConfig(filename='logs/guard.log', filemode='a', level=logging.INFO,
format='%(asctime)s - %(message)s')
load_dotenv()

0 comments on commit 9f23eb7

Please sign in to comment.