-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use platform specific host identifier for init logging #423
Comments
➤ Philip Jenvey commented: JR Conlin I thought #394 ( https://github.com/mozilla-services/autopush-rs/pull/394|smart-link ) fixed the startup issue? We do init logging within an #[actix_web::main] runtime, the problem was the common-rs was previously using a much older tokio runtime – and removing common-rs and upgrading everything brought the runtime inline with modern actix-web’s. |
➤ JR Conlin commented: Philip Jenvey When I tried running autoendpoint or autoconnect locally without specifying the human logs flag, the app would crash because of the reqwest blocking call. This is with an updated master. The error I see is: $ RUST_BACKTRACE=1 cargo run --bin autoendpoint This patch allows me to run correctly. From what I could tell, it was because the blocking call we were doing which tells me that actix had not yet fully established the async handler. Tossing the reqwest request into a mini thread seemed to resolve the problem. I’m still not 100% on threads, so I’m probably missing something, but does this make sense? |
➤ JR Conlin commented: no longer required |
Currently, when starting up we do a check for an AWS ID, regardless of what platform we’re starting on. This may cause an exception in some situations because logging initialization occurs before the actix thread management system has been started, which may result in a panic.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: