summaryrefslogtreecommitdiffstats
path: root/src/app.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-09-30 22:06:57 -0400
committerGitHub <noreply@github.com>2020-09-30 22:06:57 -0400
commit9afb6d7c88ca515ecd8d37134b567b6d17e0f0fb (patch)
tree0f5918a7ba31de81d388bc9c1b738423386fe9d8 /src/app.rs
parent57e87d88d09e6282770a2315977fe43ef52958b4 (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.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app.rs b/src/app.rs
index bad2803e..01899c00 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -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();