New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging in log
is bugged, but tracing
works
#860
Comments
Log
is bugged, but Tracing
workslog
is bugged, but tracing
works
You don't see logs from our driver because it uses I guess we could enable
So I guess there isn't an overhead of emitting 2 events, but I worry there still may be additional checking or other potential performance problems - it needs a bit more research. In the meantime, here's a branch with Regarding the issue of logs from |
@RoDmitry thanks for reproducer. It looks like
The logs from actix are not printed. They are again if you comment out |
It might be an issue of the |
Maybe add info somewhere in the docs, with recommendation to use |
There is |
Actually I see there is already a section about logging in our documentation: https://rust-driver.docs.scylladb.com/stable/logging/logging.html and it says that the driver uses tracing to emit logs and you have to use tracing subscriber. |
It says: "The driver uses", but does not recommend to use |
@RoDmitry this should be fixed on current main, can you give it a try? |
I was using
log
+env_logger
, and logs from other crates (sqlx
andactix_web
) didn't print after initialization ofscylla::Session
.Also no logs from
scylla
itself were present.I mean if you change order of these two blocks, then you will see logs from
sqlx
(but still no logs fromscylla
):main.rs:
Once I replaced logging (
log
+env_logger
) withtracing
+tracing-subscriber
in my app, logs are printing just fine.The text was updated successfully, but these errors were encountered: