diff options
| author | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-23 07:40:31 +0000 |
|---|---|---|
| committer | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-23 07:40:31 +0000 |
| commit | 904ade574fb0aea79d5861642abe7718f6f1f3d1 (patch) | |
| tree | 40ddf429f4b5ac509b6f8862c28c21b021f5c2a3 | |
| parent | 933b704317f786357cc669e2317fd82a8ec22b36 (diff) | |
| download | nixtaml-904ade574fb0aea79d5861642abe7718f6f1f3d1.tar nixtaml-904ade574fb0aea79d5861642abe7718f6f1f3d1.tar.gz nixtaml-904ade574fb0aea79d5861642abe7718f6f1f3d1.tar.bz2 nixtaml-904ade574fb0aea79d5861642abe7718f6f1f3d1.tar.lz nixtaml-904ade574fb0aea79d5861642abe7718f6f1f3d1.tar.xz nixtaml-904ade574fb0aea79d5861642abe7718f6f1f3d1.tar.zst nixtaml-904ade574fb0aea79d5861642abe7718f6f1f3d1.zip | |
refresh: print name with latest debug info
| -rw-r--r-- | lib/input_foreman.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/input_foreman.ml b/lib/input_foreman.ml index 56c46db..08f4f79 100644 --- a/lib/input_foreman.ml +++ b/lib/input_foreman.ml @@ -674,8 +674,8 @@ let refresh_one ~env ~sw ~proc_mgr ~name : (unit, error) result = | Error err -> Error err | Ok None -> Ok `LacksCmd | Ok (Some(new_value : string)) -> - Logs.info (fun m -> m "Old latest value: %a" (Fmt.option ~none: (Fmt.const Fmt.string "โ
") Fmt.string) input.latest.value); - Logs.info (fun m -> m "New latest value: %a" Fmt.string new_value); + Logs.info (fun m -> m "%a old latest value: %a" Name.pp name (Fmt.option ~none: (Fmt.const Fmt.string "โ
") Fmt.string) input.latest.value); + Logs.info (fun m -> m "%a new latest value: %a" Name.pp name Fmt.string new_value); let is_outdated : string option -> bool = Option.fold ~none: true ~some: (Fun.compose not (String.equal new_value)) in |
