Stub to create filenames based on time and log level.
This commit is contained in:
@@ -3,8 +3,8 @@ use std::thread;
|
||||
|
||||
use glog;
|
||||
|
||||
fn main() {
|
||||
glog::init();
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
glog::init()?;
|
||||
|
||||
trace!("trace!");
|
||||
debug!("debug!");
|
||||
@@ -14,4 +14,5 @@ fn main() {
|
||||
|
||||
let handle = thread::spawn(|| error!("from a second thread"));
|
||||
handle.join();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user