Skip to content

Commit eab5ddf

Browse files
author
Andrii Sultanov
committed
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 <andrii.sultanov@cloud.com>
1 parent 403c849 commit eab5ddf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oxenstored/connection.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ let anon_id_next = ref 1
185185
let get_domstr con =
186186
match con.dom with
187187
| None ->
188-
"A" ^ string_of_int con.anonid
188+
Printf.sprintf "DOM0 (ANON CONN #%d)" con.anonid
189189
| Some dom ->
190-
"D" ^ string_of_int (Domain.get_id dom)
190+
Printf.sprintf "DOM%d" (Domain.get_id dom)
191191

192192
let make_perm dom =
193193
let domid = match dom with None -> 0 | Some d -> Domain.get_id d in

0 commit comments

Comments
 (0)