Closed chdalski closed 5 months ago
Chapter 8.2.1 implements the StoreTokenError
and forwards it to actix_web::Error
.
The expected output ([HTTP REQUEST - EVENT]
) is available after the implementation.
So the issue is resolved by actually forwarding the errors to actix_web
. The output will not contain the exception.details
and exception.message
without that mechanism in place.
So I guess it's documented now and I'll close the issue.
In Chapter 8.2 the log output from the first test (
subscribe_fails_if_there_is_a_fatal_database_error()
) at the beginning of the chapter should contain:However the output doesn't match with the output console output - the
[HTTP REQUEST - EVENT]
is missing completely and theexception.details
andexception.message
aren't shown in[HTTP REQUEST - END]
.How to replicate:
root-chapter-07-part2
subscribe_fails_if_there_is_a_fatal_database_error()
from chapter 8.2RUST_LOG="sqlx=error,info" TEST_LOG=true cargo t subscribe_fails_if_there_is_a_fatal_database_error | bunyan
I might miss something but I can't figure it out and help would be very much appreciated.