From eab5ddf36e3216d40f08f0ac6cd0f9fb30d93684 Mon Sep 17 00:00:00 2001 From: Andrii Sultanov Date: Mon, 2 Dec 2024 09:41:13 +0000 Subject: [PATCH] logging: make xenstored-access less cryptic Feedback from the support team made it clear that it's better to be consistent across different logs, and xenstored-access.log's "D4" and "A7" aren't clear at all. Switch instead to "DOMID4" and "DOM0 (ANON CONN #7)" respectively. These strings were only used in logging, so no functional changes. Signed-off-by: Andrii Sultanov --- oxenstored/connection.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oxenstored/connection.ml b/oxenstored/connection.ml index 3341d7e..fe62064 100644 --- a/oxenstored/connection.ml +++ b/oxenstored/connection.ml @@ -185,9 +185,9 @@ let anon_id_next = ref 1 let get_domstr con = match con.dom with | None -> - "A" ^ string_of_int con.anonid + Printf.sprintf "DOM0 (ANON CONN #%d)" con.anonid | Some dom -> - "D" ^ string_of_int (Domain.get_id dom) + Printf.sprintf "DOM%d" (Domain.get_id dom) let make_perm dom = let domid = match dom with None -> 0 | Some d -> Domain.get_id d in