diff --git a/src/CommandLine.ServerExtensions/PackageMirrorer.cs b/src/CommandLine.ServerExtensions/PackageMirrorer.cs index f9ea1aa03..4b5f38630 100644 --- a/src/CommandLine.ServerExtensions/PackageMirrorer.cs +++ b/src/CommandLine.ServerExtensions/PackageMirrorer.cs @@ -97,13 +97,13 @@ private int Execute(IPackage package, IPackageOperationResolver resolver) { if (TargetRepository.Exists(package)) { - Logger.Log(MessageLevel.Info, NuGetResources.Log_PackageAlreadyPresent, p.GetFullName(), TargetRepository.Source); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_PackageAlreadyPresent, p.GetFullName(), TargetRepository.Source); } else { ExecuteMirror(p); countMirrored++; - Logger.Log(MessageLevel.Info, NuGetResources.Log_PackageMirroredSuccessfully, p.GetFullName(), TargetRepository.Source); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_PackageMirroredSuccessfully, p.GetFullName(), TargetRepository.Source); } } diff --git a/src/CommandLine.ServerExtensions/PackageServerRepository.cs b/src/CommandLine.ServerExtensions/PackageServerRepository.cs index c91a1ccfd..811244dad 100644 --- a/src/CommandLine.ServerExtensions/PackageServerRepository.cs +++ b/src/CommandLine.ServerExtensions/PackageServerRepository.cs @@ -56,14 +56,14 @@ public IQueryable GetPackages() public void AddPackage(IPackage package) { - _logger.Log(MessageLevel.Info, NuGetResources.MirrorCommandPushingPackage, package.GetFullName(), CommandLineUtility.GetSourceDisplayName(_destination.Source)); + _logger.Log(MessageLevel.Verbose, NuGetResources.MirrorCommandPushingPackage, package.GetFullName(), CommandLineUtility.GetSourceDisplayName(_destination.Source)); _destination.PushPackage( _apiKey, package, package.GetStream().Length, (int)_timeout.TotalMilliseconds, disableBuffering: false); - _logger.Log(MessageLevel.Info, NuGetResources.MirrorCommandPackagePushed); + _logger.Log(MessageLevel.Verbose, NuGetResources.MirrorCommandPackagePushed); } public void RemovePackage(IPackage package) diff --git a/src/CommandLine/Commands/ProjectFactory.cs b/src/CommandLine/Commands/ProjectFactory.cs index 358e6ab6d..589f9d965 100644 --- a/src/CommandLine/Commands/ProjectFactory.cs +++ b/src/CommandLine/Commands/ProjectFactory.cs @@ -125,7 +125,7 @@ public PackageBuilder CreateBuilder(string basePath) { BuildProject(); - Logger.Log(MessageLevel.Info, LocalizedResourceManager.GetString("PackagingFilesFromOutputPath"), Path.GetDirectoryName(TargetPath)); + Logger.Log(MessageLevel.Verbose, LocalizedResourceManager.GetString("PackagingFilesFromOutputPath"), Path.GetDirectoryName(TargetPath)); var builder = new PackageBuilder(); diff --git a/src/Core/PackageManager.cs b/src/Core/PackageManager.cs index 6252d99c7..6cc20f76a 100644 --- a/src/Core/PackageManager.cs +++ b/src/Core/PackageManager.cs @@ -172,7 +172,7 @@ private void Execute(IPackage package, IPackageOperationResolver resolver) else if (LocalRepository.Exists(package)) { // If the package wasn't installed by our set of operations, notify the user. - Logger.Log(MessageLevel.Info, NuGetResources.Log_PackageAlreadyInstalled, package.GetFullName()); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_PackageAlreadyInstalled, package.GetFullName()); } } @@ -185,7 +185,7 @@ protected void Execute(PackageOperation operation) // If the package is already installed, then skip it if (packageExists) { - Logger.Log(MessageLevel.Info, NuGetResources.Log_PackageAlreadyInstalled, operation.Package.GetFullName()); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_PackageAlreadyInstalled, operation.Package.GetFullName()); } else { @@ -218,7 +218,7 @@ protected void Execute(PackageOperation operation) protected void ExecuteInstall(IPackage package) { string packageFullName = package.GetFullName(); - Logger.Log(MessageLevel.Info, NuGetResources.Log_BeginInstallPackage, packageFullName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_BeginInstallPackage, packageFullName); PackageOperationEventArgs args = CreateOperation(package); OnInstalling(args); @@ -232,7 +232,7 @@ protected void ExecuteInstall(IPackage package) LocalRepository.AddPackage(package); - Logger.Log(MessageLevel.Info, NuGetResources.Log_PackageInstalledSuccessfully, packageFullName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_PackageInstalledSuccessfully, packageFullName); OnInstalled(args); } @@ -338,7 +338,7 @@ public virtual void UninstallPackage(IPackage package, bool forceRemove, bool re protected virtual void ExecuteUninstall(IPackage package) { string packageFullName = package.GetFullName(); - Logger.Log(MessageLevel.Info, NuGetResources.Log_BeginUninstallPackage, packageFullName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_BeginUninstallPackage, packageFullName); PackageOperationEventArgs args = CreateOperation(package); OnUninstalling(args); @@ -352,7 +352,7 @@ protected virtual void ExecuteUninstall(IPackage package) LocalRepository.RemovePackage(package); - Logger.Log(MessageLevel.Info, NuGetResources.Log_SuccessfullyUninstalledPackage, packageFullName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_SuccessfullyUninstalledPackage, packageFullName); OnUninstalled(args); } @@ -467,7 +467,7 @@ internal void UpdatePackage(string packageId, Func resolvePackage, boo } else { - Logger.Log(MessageLevel.Info, NuGetResources.Log_NoUpdatesAvailable, packageId); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_NoUpdatesAvailable, packageId); } } diff --git a/src/Core/PackageWalker/InstallWalker.cs b/src/Core/PackageWalker/InstallWalker.cs index a00f7d5b2..8c407d647 100644 --- a/src/Core/PackageWalker/InstallWalker.cs +++ b/src/Core/PackageWalker/InstallWalker.cs @@ -389,7 +389,7 @@ protected override void OnAfterPackageWalk(IPackage package) protected override IPackage ResolveDependency(PackageDependency dependency) { - Logger.Log(MessageLevel.Info, NuGetResources.Log_AttemptingToRetrievePackageFromSource, dependency); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_AttemptingToRetrievePackageFromSource, dependency); // First try to get a local copy of the package // Bug1638: Include prereleases when resolving locally installed dependencies. diff --git a/src/Core/ProjectManager.cs b/src/Core/ProjectManager.cs index 148d2872f..9a8c77135 100644 --- a/src/Core/ProjectManager.cs +++ b/src/Core/ProjectManager.cs @@ -175,7 +175,7 @@ private void Execute(IPackage package, IPackageOperationResolver resolver) } else if (LocalRepository.Exists(package)) { - Logger.Log(MessageLevel.Info, NuGetResources.Log_ProjectAlreadyReferencesPackage, Project.ProjectName, package.GetFullName()); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_ProjectAlreadyReferencesPackage, Project.ProjectName, package.GetFullName()); } } @@ -188,7 +188,7 @@ protected void Execute(PackageOperation operation) // If the package is already installed, then skip it if (packageExists) { - Logger.Log(MessageLevel.Info, NuGetResources.Log_ProjectAlreadyReferencesPackage, Project.ProjectName, operation.Package.GetFullName()); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_ProjectAlreadyReferencesPackage, Project.ProjectName, operation.Package.GetFullName()); } else { @@ -235,7 +235,7 @@ protected void Execute(PackageOperation operation) protected void AddPackageReferenceToProject(IPackage package) { string packageFullName = package.GetFullName(); - Logger.Log(MessageLevel.Info, NuGetResources.Log_BeginAddPackageReference, packageFullName, Project.ProjectName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_BeginAddPackageReference, packageFullName, Project.ProjectName); PackageOperationEventArgs args = CreateOperation(package); OnPackageReferenceAdding(args); @@ -247,7 +247,7 @@ protected void AddPackageReferenceToProject(IPackage package) ExtractPackageFilesToProject(package); - Logger.Log(MessageLevel.Info, NuGetResources.Log_SuccessfullyAddedPackageReference, packageFullName, Project.ProjectName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_SuccessfullyAddedPackageReference, packageFullName, Project.ProjectName); OnPackageReferenceAdded(args); } @@ -437,7 +437,7 @@ public virtual void RemovePackageReference(IPackage package, bool forceRemove, b private void RemovePackageReferenceFromProject(IPackage package) { string packageFullName = package.GetFullName(); - Logger.Log(MessageLevel.Info, NuGetResources.Log_BeginRemovePackageReference, packageFullName, Project.ProjectName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_BeginRemovePackageReference, packageFullName, Project.ProjectName); PackageOperationEventArgs args = CreateOperation(package); OnPackageReferenceRemoving(args); @@ -495,7 +495,7 @@ from file in GetCompatibleInstalledItemsForPackage(p.Id, p.GetContentFiles()) LocalRepository.RemovePackage(package); - Logger.Log(MessageLevel.Info, NuGetResources.Log_SuccessfullyRemovedPackageReference, packageFullName, Project.ProjectName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_SuccessfullyRemovedPackageReference, packageFullName, Project.ProjectName); OnPackageReferenceRemoved(args); } @@ -589,7 +589,7 @@ private void UpdatePackageReference(string packageId, Func resolvePack oldPackage.Version != package.Version && (allowPrereleaseVersions || targetVersionSetExplicitly || oldPackage.IsReleaseVersion() || !package.IsReleaseVersion() || oldPackage.Version < package.Version)) { - Logger.Log(MessageLevel.Info, NuGetResources.Log_UpdatingPackages, package.Id, oldPackage.Version, package.Version, Project.ProjectName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_UpdatingPackages, package.Id, oldPackage.Version, package.Version, Project.ProjectName); UpdatePackageReferenceCore(package, updateDependencies, allowPrereleaseVersions); } else @@ -597,16 +597,16 @@ private void UpdatePackageReference(string packageId, Func resolvePack IVersionSpec constraint = ConstraintProvider.GetConstraint(packageId); if (constraint != null) { - Logger.Log(MessageLevel.Info, NuGetResources.Log_ApplyingConstraints, packageId, VersionUtility.PrettyPrint(constraint), ConstraintProvider.Source); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_ApplyingConstraints, packageId, VersionUtility.PrettyPrint(constraint), ConstraintProvider.Source); } - Logger.Log(MessageLevel.Info, NuGetResources.Log_NoUpdatesAvailableForProject, packageId, Project.ProjectName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_NoUpdatesAvailableForProject, packageId, Project.ProjectName); } } public virtual void UpdatePackageReference(IPackage remotePackage, bool updateDependencies, bool allowPrereleaseVersions) { - Logger.Log(MessageLevel.Info, NuGetResources.Log_UpdatingPackagesWithoutOldVersion, remotePackage.Id, remotePackage.Version, Project.ProjectName); + Logger.Log(MessageLevel.Verbose, NuGetResources.Log_UpdatingPackagesWithoutOldVersion, remotePackage.Id, remotePackage.Version, Project.ProjectName); UpdatePackageReferenceCore(remotePackage, updateDependencies, allowPrereleaseVersions); }