You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logs are captured during testing and are printed in failed test stdout. Great!
But recently I started using SyncContext in Actix and logs appeared during the tests. I can't disable them. It seems like SyncArbiter is spawning threads that are not configured to print logs to stdout. Do you know how I can disable logs during testing and enable them in failed tests?
I am logging with pretty_env_logger and log crates. Maybe, there is a better solution for doing so?
rustc version 1.45.1
actix version 0.9.0
log version 0.4.11
pretty_env_logger version 0.4.0
The text was updated successfully, but these errors were encountered:
I am writing Actix-Web application and using Actix for my service layer. During testing I am enabling logging with this piece of code:
Logs are captured during testing and are printed in failed test stdout. Great!
But recently I started using SyncContext in Actix and logs appeared during the tests. I can't disable them. It seems like SyncArbiter is spawning threads that are not configured to print logs to stdout. Do you know how I can disable logs during testing and enable them in failed tests?
I am logging with
pretty_env_logger
andlog
crates. Maybe, there is a better solution for doing so?rustc version 1.45.1
actix version 0.9.0
log version 0.4.11
pretty_env_logger version 0.4.0
The text was updated successfully, but these errors were encountered: