Merge pull request #4 from pteromys/master
Add env_logger to ease troubleshooting.
This commit is contained in:
commit
c8ce4bb629
@ -32,4 +32,4 @@ tokio-tls = { package = "tokio-native-tls", version = "0.3" }
|
||||
xmpp-parsers = "0.18"
|
||||
die = "0.2.0"
|
||||
anyhow = "1.0"
|
||||
|
||||
env_logger = "0.9"
|
||||
|
@ -58,6 +58,8 @@ struct MyOptions {
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
|
||||
let args: Vec<String> = args().collect();
|
||||
|
||||
// Remember to skip the first argument. That's the program name.
|
||||
|
Loading…
Reference in New Issue
Block a user