Skip to content

Commit

Permalink
Add back /tmp/ in logs path.
Browse files Browse the repository at this point in the history
  • Loading branch information
niccolozanotti committed Sep 5, 2024
1 parent ad1970c commit e4fc2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def log_action(name, action):

def append_log_to_s3(log_entry):
today = datetime.today()
LOG_FILE_KEY = f'{today.strftime("%Y-%m-%d")}-logs.csv'
LOG_FILE_KEY = f'/tmp/{today.strftime("%Y-%m-%d")}-logs.csv'
log_file = f'{LOG_FILE_KEY}' # Temporary file path

# Attempt to download the existing log file from S3 if it exists
Expand Down

0 comments on commit e4fc2bb

Please sign in to comment.