Turn off XenStore debug logging

This commit is contained in:
Thomas Leonard 2016-01-01 12:37:39 +00:00
parent 2002126b8b
commit d0f4189df8

View File

@ -11,10 +11,7 @@ module Log = (val Logs.src_log src : Logs.LOG)
let () = let () =
let open Logs in let open Logs in
(* Set default log level *) (* Set default log level *)
set_level (Some Logs.Info); set_level (Some Logs.Info)
(* Debug-level logging for XenStore while tracking down occasional EACCES error. *)
Src.list () |> List.find (fun src -> Src.name src = "xenstore.client") |> fun xs ->
Src.set_level xs (Some Debug)
module Main (Clock : V1.CLOCK) = struct module Main (Clock : V1.CLOCK) = struct
module Log_reporter = Mirage_logs.Make(Clock) module Log_reporter = Mirage_logs.Make(Clock)