Skip to content

Commit 4b74229

Browse files
author
Rupayan Ghosh
committed
black formatting
1 parent cbb069b commit 4b74229

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

awslambdaric/bootstrap.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,13 @@ def __exit__(self, exc_type, exc_value, exc_tb):
335335

336336
def log(self, msg):
337337
encoded_msg = msg.encode("utf8")
338-
timestamp = int(time.time_ns() / 1000) # UNIX timestamp in microseconds
339-
log_msg = self.frame_type + len(encoded_msg).to_bytes(4, "big") + timestamp.to_bytes(8, "big") + encoded_msg
338+
timestamp = int(time.time_ns() / 1000) # UNIX timestamp in microseconds
339+
log_msg = (
340+
self.frame_type
341+
+ len(encoded_msg).to_bytes(4, "big")
342+
+ timestamp.to_bytes(8, "big")
343+
+ encoded_msg
344+
)
340345
self.file.write(log_msg)
341346

342347
def log_error(self, message_lines):

0 commit comments

Comments
 (0)