Skip to content

Commit 82078f7

Browse files
committed
Merge branch 'patch-1' of https://github.com/micsco/Cake.BuildSystems.Module into micsco-patch-1
2 parents 6a39d56 + 8273178 commit 82078f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cake.TeamCity.Module/TeamCityLog.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public TeamCityLog(IConsole console, Verbosity verbosity = Verbosity.Normal)
1616

1717
public void Write(Verbosity verbosity, LogLevel level, string format, params object[] args)
1818
{
19-
if (!string.IsNullOrWhiteSpace(System.Environment.GetEnvironmentVariable("TF_BUILD")))
19+
if (!string.IsNullOrWhiteSpace(System.Environment.GetEnvironmentVariable("TEAMCITY_VERSION")))
2020
{
2121
switch (level)
2222
{
@@ -56,4 +56,4 @@ private string Escape(string text)
5656
.Replace("]", "|]");
5757
}
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)