added more debug logs

main
Nickiel12 1 year ago
parent 0551352b7e
commit 0f107a3985

@ -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 = ''

@ -14,6 +14,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
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"));

Loading…
Cancel
Save