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 from vfs
lazy_load_blobs are thrown out when a new message is received
Expected behavior
Logging should not alter lazy_load_blob.
Describe the bug
https://discord.com/channels/1186394868336038080/1306250401451999253
If you receive an HTTP request and log it (e.g.
info!(); sending toprintln!()is fine) before reading the body withget_blob(), logging it to file will have replaced the blob. This happens because weAppendto the log file, receiving a Result back fromvfs, and hence, replacing ourlazy_load_blobwithNone.Code trace:
.append()call.append()call does under the hood: Append and handle Response fromvfslazy_load_blobs are thrown out when a new message is receivedExpected behavior
Logging should not alter
lazy_load_blob.