X-Git-Url: http://git.euphorik.ch/?p=master-thesis.git;a=blobdiff_plain;f=Parasitemia%2FParasitemiaCore%2FAnalysis.fs;h=f607760422c3cca9f3ddea966b5ec0d15c3491f3;hp=afcf4df53f103a5f0f624af6dd3367fc94faedd5;hb=e8d14548fc5b127970fccb19bad146512f7ac6d9;hpb=e2517b9837d5c82e003bc3aa7b27040636cea6f0 diff --git a/Parasitemia/ParasitemiaCore/Analysis.fs b/Parasitemia/ParasitemiaCore/Analysis.fs index afcf4df..f607760 100644 --- a/Parasitemia/ParasitemiaCore/Analysis.fs +++ b/Parasitemia/ParasitemiaCore/Analysis.fs @@ -40,8 +40,8 @@ let doAnalysis (img : Image) (name : string) (config : Config) (repor reportWithVal percent () let inline buildLogWithName (text : string) = sprintf "№ %s: %s" name text - let logWithName mess = Log.User(buildLogWithName mess) - let inline logTimeWithName (text : string) (f : unit -> 'a option) : 'a option = Log.LogWithTime((buildLogWithName text), Severity.USER, f) + let logWithName mess = Log.Info "%s" (buildLogWithName mess) + let inline logTimeWithName (text : string) (f : unit -> 'a option) : 'a option = Log.LogWithTime Severity.INFO f "%s" (buildLogWithName text) // Monadic construction to be able to abort the progress when running. maybe { @@ -186,7 +186,7 @@ let doMultipleAnalysis (imgs : (string * Config * Image) list) (repor | None -> None with | ex -> - Log.Error("Analysis {0} failed: {1}", id, ex) + Log.Error "Analysis %s failed: %O" id ex None ) |> PSeq.withDegreeOfParallelism n