Skip to content

Commit

Permalink
Merge pull request #3217 from gitfool/gh3216
Browse files Browse the repository at this point in the history
GH3216: Remap NuGetLogger Verbose/Verbose to ICakeLog Debug/Diagnostic
  • Loading branch information
augustoproiete committed Mar 3, 2021
2 parents 7e46d5f + d483bf9 commit 576f4b5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Cake.NuGet/Client/NuGetLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ private static Core.Diagnostics.LogLevel GetLogLevel(LogLevel logLevel)
{
case LogLevel.Minimal:
return Core.Diagnostics.LogLevel.Information;
case LogLevel.Verbose:
return Core.Diagnostics.LogLevel.Verbose;
case LogLevel.Warning:
return Core.Diagnostics.LogLevel.Warning;
case LogLevel.Error:
Expand All @@ -36,9 +34,8 @@ private static Verbosity GetVerbosity(LogLevel logLevel)
switch (logLevel)
{
case LogLevel.Debug:
return Verbosity.Diagnostic;
case LogLevel.Verbose:
return Verbosity.Verbose;
return Verbosity.Diagnostic;
case LogLevel.Warning:
return Verbosity.Minimal;
case LogLevel.Error:
Expand All @@ -55,7 +52,7 @@ public NuGetLogger(ICakeLog log)

public void LogDebug(string data) => _log.Debug(data);

public void LogVerbose(string data) => _log.Verbose(data);
public void LogVerbose(string data) => _log.Debug(data);

public void LogInformation(string data) => _log.Debug(data);

Expand Down

0 comments on commit 576f4b5

Please sign in to comment.