Open
Description
Describe the bug
https://discord.com/channels/1186394868336038080/1306250401451999253
If you receive an HTTP request and log it (e.g. info!()
; sending to println!()
is fine) before reading the body with get_blob()
, logging it to file will have replaced the blob. This happens because we Append
to the log file, receiving a Result back from vfs
, and hence, replacing our lazy_load_blob
with None
.
Code trace:
- The file logger
.append()
call - What that
.append()
call does under the hood: Append and handle Response fromvfs
lazy_load_blob
s are thrown out when a new message is received
Expected behavior
Logging should not alter lazy_load_blob
.