diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-09-30 22:06:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 22:06:57 -0400 |
commit | 9afb6d7c88ca515ecd8d37134b567b6d17e0f0fb (patch) | |
tree | 0f5918a7ba31de81d388bc9c1b738423386fe9d8 /src/app.rs | |
parent | 57e87d88d09e6282770a2315977fe43ef52958b4 (diff) |
feature: add --debug flag for logging (#259)
Adds a `--debug` flag to aid in debugging issues. This saves to `/tmp/bottom_debug.log`.
Diffstat (limited to 'src/app.rs')
-rw-r--r-- | src/app.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,7 @@ const MAX_SEARCH_LENGTH: usize = 200; /// AppConfigFields is meant to cover basic fields that would normally be set /// by config files or launch options. +#[derive(Debug)] pub struct AppConfigFields { pub update_rate_in_milliseconds: u64, pub temperature_type: temperature::TemperatureType, @@ -1228,6 +1229,7 @@ impl App { 'k' => self.on_up_key(), 'j' => self.on_down_key(), 'f' => { + // FIXME: [FROZEN] Add an indicator if frozen! self.is_frozen = !self.is_frozen; if self.is_frozen { self.data_collection.set_frozen_time(); |