From 0f107a3985d2acdf4fb6d6d867f7ebe1bc198338 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 25 Aug 2023 21:34:34 -0700 Subject: [PATCH] added more debug logs --- flake.nix | 3 ++- status_cloud/src/main.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index da477f6..167d28b 100644 --- a/flake.nix +++ b/flake.nix @@ -93,7 +93,8 @@ rust-project TODO: write shell script for automatically updating `cargoHash` cfg = config.services.status_cloud; pkg = self.packages.${system}.status_cloud; in lib.mkIf cfg.enable { - description = pkg.meta.description; + #description = pkg.meta.description; + description = "Status Cloud"; serviceConfig = { Type = "oneshot"; ExecStart = '' diff --git a/status_cloud/src/main.rs b/status_cloud/src/main.rs index c050a2d..5cb5147 100644 --- a/status_cloud/src/main.rs +++ b/status_cloud/src/main.rs @@ -14,6 +14,7 @@ fn main() -> Result<(), Box> { let args = CliArgs::parse(); println!("Opening Config file: {}", args.config_file); + println!("File exists: {}", std::fs::metadata(args.config_file.clone()).is_ok()); let cfg: Config = confy::load_path(args.config_file)?; let mut body_content: String = format!("*Last Updated:* {} \n", chrono::Local::now().format("%D - %H:%M:%S"));