make server logging show messages in the frontend
now you can use the log crate and get messages in the frontend.
This commit is contained in:
parent
8135f163f2
commit
18da61ed32
6 changed files with 91 additions and 25 deletions
|
|
@ -82,6 +82,10 @@ async fn server_main<
|
|||
}
|
||||
|
||||
pub async fn run_server() {
|
||||
env_logger::Builder::from_env(
|
||||
env_logger::Env::new().filter_or("FWD_LOG", "warn"),
|
||||
)
|
||||
.init();
|
||||
let stdin = tokio::io::stdin();
|
||||
let stdout = tokio::io::stdout();
|
||||
if let Err(e) = server_main(stdin, stdout).await {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue