mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Add obfuscated logger.
This commit is contained in:
@@ -3,20 +3,15 @@ use unshell_lib::{
|
||||
module::{Manager, Module},
|
||||
};
|
||||
|
||||
use unshell_obfuscate::obs;
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
extern crate unshell_lib;
|
||||
|
||||
fn main() {
|
||||
// Init the logger (This uses like 600MB of storage)
|
||||
pretty_env_logger::init();
|
||||
// #[cfg(not(feature = "obfuscate"))]
|
||||
unshell_lib::logger::PrettyLogger::init();
|
||||
|
||||
info!("Initialized");
|
||||
|
||||
let s = obs!("Obvias string");
|
||||
info!("{}", s);
|
||||
|
||||
match || -> Result<(), ModuleError> {
|
||||
let args = std::env::args();
|
||||
|
||||
@@ -31,7 +26,7 @@ fn main() {
|
||||
}() {
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
error!("ERROR! {:?}", e);
|
||||
info!("ERROR! {:?}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user