Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH3216: Remap NuGetLogger Verbose/Verbose to ICakeLog Debug/Diagnostic #3217

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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