From 3a3f38cc87195433a8eebd95c3e946610d70693c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Sun, 18 Aug 2024 15:22:22 +0200 Subject: [PATCH] Fix view compilation on OWIN (optional log) --- .../Framework/Compilation/DotvvmViewCompilationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Framework/Framework/Compilation/DotvvmViewCompilationService.cs b/src/Framework/Framework/Compilation/DotvvmViewCompilationService.cs index f70979677..6d633f2c8 100644 --- a/src/Framework/Framework/Compilation/DotvvmViewCompilationService.cs +++ b/src/Framework/Framework/Compilation/DotvvmViewCompilationService.cs @@ -138,7 +138,7 @@ public async Task CompileAll(bool buildInParallel = true, bool forceRecomp await ExecuteCompileTasks(compileTasks, maxParallelism); } - log.LogInformation("Compiled {0} DotHTML files on {1} threads in {2} s", totalCompiledFiles, maxParallelism, sw.ElapsedSeconds); + log?.LogInformation("Compiled {0} DotHTML files on {1} threads in {2} s", totalCompiledFiles, maxParallelism, sw.ElapsedSeconds); } finally {