Skip to content

Commit

Permalink
Improves logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorec committed Jun 6, 2019
1 parent dc21fa4 commit ff2681d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ff2681d

Please sign in to comment.