]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
tools/oxenstored: Log live update issues at warning level
authorEdwin Török <edvin.torok@citrix.com>
Tue, 8 Nov 2022 08:57:47 +0000 (08:57 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 1 Dec 2022 16:07:17 +0000 (16:07 +0000)
During live update, oxenstored tries a best effort approach to recover as many
domains and information as possible even if it encounters errors restoring
some domains.

However, logging about misunderstood input is more severe than simply info.
Log it at warning instead.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/xenstored.ml

index f526f4fb2310671957c0e0134fc178879525e5cc..35b8cbd43fdcc25ad03dc66b129950bbee8633ad 100644 (file)
@@ -186,9 +186,9 @@ let from_channel_f chan global_f evtchn_f socket_f domain_f watch_f store_f =
                                                (Perms.Node.of_string (unhexify perms ^ "\000"))
                                                (unhexify value)
                                | _ ->
-                                       info "restoring: ignoring unknown line: %s" line
+                                       warn "restoring: ignoring unknown line: %s" line
                        with exn ->
-                               info "restoring: ignoring unknown line: %s (exception: %s)"
+                               warn "restoring: ignoring unknown line: %s (exception: %s)"
                                     line (Printexc.to_string exn);
                                ()
                with End_of_file ->