mirror of
https://github.com/actions/runner.git
synced 2025-12-11 12:57:05 +00:00
Plural
This commit is contained in:
@@ -1403,7 +1403,7 @@ namespace GitHub.Runner.Worker
|
||||
public void Error(string format, params Object[] args)
|
||||
{
|
||||
|
||||
if (logTemplateErrorsAsDebugMessage())
|
||||
if (logTemplateErrorsAsDebugMessages())
|
||||
{
|
||||
_executionContext.Debug(string.Format(CultureInfo.CurrentCulture, format, args));
|
||||
}
|
||||
@@ -1421,7 +1421,7 @@ namespace GitHub.Runner.Worker
|
||||
_executionContext.Debug(string.Format(CultureInfo.CurrentCulture, $"{format}", args));
|
||||
}
|
||||
|
||||
private bool logTemplateErrorsAsDebugMessage()
|
||||
private bool logTemplateErrorsAsDebugMessages()
|
||||
{
|
||||
_executionContext.Global.EnvironmentVariables.TryGetValue(Constants.Runner.Features.LogTemplateErrorsAsDebugMessages, out var logErrorsAsDebug);
|
||||
return StringUtil.ConvertToBoolean(logErrorsAsDebug, defaultValue: false);
|
||||
|
||||
Reference in New Issue
Block a user