omrikiei / aws_logging_handlers

AWS integration for python logging handlers(S3, Kinesis)
https://omrikiei.github.io/aws_logging_handlers/
MIT License
71 stars 27 forks source link

I have this error when I tried to create a new instance of S3Handler. #32

Open storm0611 opened 11 months ago

storm0611 commented 11 months ago

s3_handler = S3Handler("logs", bucket, workers=3)
Traceback (most recent call last): File "", line 1, in File "C:\Users\admin\Documents\crash_bandicoot\api.localgovai\venv\Lib\site-packages\aws_logging_handlers\S3__init.py", line 329, in init__ self.stream = S3Stream(self.bucket, key, chunk_size=chunk_size, max_file_log_time=time_rotation, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\admin\Documents\crash_bandicoot\api.localgovai\venv\Lib\site-packages\aws_logging_handlers\S3__init.py", line 97, in init__ self.start_time = int(datetime.utcnow().strftime('%s')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: Invalid format string