Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
lib: Remove logging module
Erik Kundt committed 1 year ago
commit ee6da33bb45f4e56e94827b835213256bae51454
parent 04b1115571786fd495af3f29a5bf7732724096d6
3 files changed +1 -16
modified CHANGELOG.md
@@ -45,6 +45,7 @@
- All Radicle-dependent code (moved to `bin/`)
- Page size attribute from scrollable widgets
- Cutoff and footer attributes from table properties
+
- Logging facilities

### Fixed

modified src/lib.rs
@@ -1,5 +1,4 @@
pub mod event;
-
pub mod log;
pub mod store;
pub mod task;
pub mod terminal;
deleted src/log.rs
@@ -1,15 +0,0 @@
-
use log::LevelFilter;
-

-
use radicle::profile::Profile;
-

-
pub fn enable(profile: &Profile, cmd: &str, op: &str) -> Result<(), anyhow::Error> {
-
    let logfile = format!(
-
        "{}/rad-tui-{}-{}.log",
-
        profile.home().path().to_string_lossy(),
-
        cmd,
-
        op,
-
    );
-
    simple_logging::log_to_file(logfile, LevelFilter::Info)?;
-

-
    Ok(())
-
}