From ff2681de5f1be66833fc869965befde2790055c8 Mon Sep 17 00:00:00 2001 From: Marko Zorec Date: Thu, 6 Jun 2019 10:43:31 +0200 Subject: [PATCH] Improves logging --- .../Tasks/Versioning/FetchBuildVersionFromFileTask.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FlubuCore/Tasks/Versioning/FetchBuildVersionFromFileTask.cs b/src/FlubuCore/Tasks/Versioning/FetchBuildVersionFromFileTask.cs index 8cba3af3..304bca9c 100644 --- a/src/FlubuCore/Tasks/Versioning/FetchBuildVersionFromFileTask.cs +++ b/src/FlubuCore/Tasks/Versioning/FetchBuildVersionFromFileTask.cs @@ -119,6 +119,7 @@ protected override Version DoExecute(ITaskContextInternal context) } Version buildVersion = null; + context.LogInfo($"Fetching version from file: {projectVersionFilePath}"); using (Stream stream = File.Open(projectVersionFilePath, FileMode.Open)) { using (StreamReader reader = new StreamReader(stream)) @@ -168,7 +169,7 @@ protected override Version DoExecute(ITaskContextInternal context) context.SetBuildVersion(buildVersion); } - DoLogInfo($"Project build version (from file): {buildVersion}"); + DoLogInfo($"Project version fetched: {buildVersion}"); return buildVersion; } }