Add logging

This commit is contained in:
xmppftw xmppftw 2024-06-04 19:19:35 +02:00
parent d5af178c91
commit c9323b38de
2 changed files with 5 additions and 0 deletions

View File

@ -16,3 +16,5 @@ sha1 = "0.10.6"
tokio = { version = "1", features = [ "rt" ] }
xmpp = { git = "https://gitlab.com/xmpp-rs/xmpp-rs" }
async-channel = "2.3.1"
pretty_env_logger = "0.5"
log = "0.4"

View File

@ -15,6 +15,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
use adw::prelude::*;
use adw::subclass::prelude::ObjectSubclassIsExt;
use gtk::{gio, glib};
mod message;
@ -41,6 +42,8 @@ fn xep_0392(input: &str) -> String {
}
fn main() {
pretty_env_logger::init();
let mut args = std::env::args();
let _ = args.next().unwrap();
let username = args.next().expect("Please give username argument 1");