summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-08-27 01:10:51 -0400
committerBen Morrison <ben@gbmor.dev>2019-08-27 01:10:51 -0400
commit5b59ba3aee3e874b2e67cf529680d19910a3ec7d (patch)
treeaf9d8c630c144bc875a75fb77f380812b68b69fa /src/main.rs
parent9ee17f15bb380d31d55d83586ebdf3644cf326af (diff)
downloadclinte-5b59ba3aee3e874b2e67cf529680d19910a3ec7d.tar.gz
db connected, logging up
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 9bc08ad..6c0d957 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,6 +1,17 @@
+use log::info;
+use std::sync::mpsc;
+
 mod db;
+mod logging;
 
 fn main() {
+    logging::init();
+    info!("clinte starting up!");
     println!("clinte-0.1-dev");
     println!("a community notices system");
+
+    let (_tx, rx) = mpsc::channel::<db::Cmd>();
+    let db = db::Conn::new(rx);
+
+    println!("{:?}", db);
 }