added more debug logs
This commit is contained in:
parent
0551352b7e
commit
0f107a3985
2 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,8 @@ rust-project TODO: write shell script for automatically updating `cargoHash`
|
||||||
cfg = config.services.status_cloud;
|
cfg = config.services.status_cloud;
|
||||||
pkg = self.packages.${system}.status_cloud;
|
pkg = self.packages.${system}.status_cloud;
|
||||||
in lib.mkIf cfg.enable {
|
in lib.mkIf cfg.enable {
|
||||||
description = pkg.meta.description;
|
#description = pkg.meta.description;
|
||||||
|
description = "Status Cloud";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
|
|
|
@ -14,6 +14,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let args = CliArgs::parse();
|
let args = CliArgs::parse();
|
||||||
|
|
||||||
println!("Opening Config file: {}", args.config_file);
|
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 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"));
|
let mut body_content: String = format!("*Last Updated:* {} \n", chrono::Local::now().format("%D - %H:%M:%S"));
|
||||||
|
|
Loading…
Reference in a new issue