Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit d55e27b

Browse files
committed
Remove logging dependency from GitContextPackage
No need to log when not in a Visual Studio process.
1 parent 07bff2d commit d55e27b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/GitHub.VisualStudio/GitContextPackage.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
using System.Threading;
33
using System.Runtime.InteropServices;
44
using GitHub.Exports;
5-
using GitHub.Logging;
65
using GitHub.Services;
76
using Microsoft.VisualStudio.Shell;
8-
using Serilog;
97
using Task = System.Threading.Tasks.Task;
108

119
namespace GitHub.VisualStudio
@@ -20,13 +18,11 @@ namespace GitHub.VisualStudio
2018
[ProvideAutoLoad(Guids.GitSccProviderId, PackageAutoLoadFlags.BackgroundLoad)]
2119
public class GitContextPackage : AsyncPackage
2220
{
23-
static readonly ILogger log = LogManager.ForContext<GitContextPackage>();
24-
2521
protected async override Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
2622
{
2723
if (!ExportForVisualStudioProcessAttribute.IsVisualStudioProcess())
2824
{
29-
log.Warning("Don't activate 'UIContext_Git' for non-Visual Studio process");
25+
// Don't activate 'UIContext_Git' for non-Visual Studio process
3026
return;
3127
}
3228

0 commit comments

Comments
 (0)