diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 diff --git a/Utilities/Extensions.cs b/Utilities/Extensions.cs index 0f1b17e..4364123 100644 --- a/Utilities/Extensions.cs +++ b/Utilities/Extensions.cs @@ -1,5 +1,6 @@ using System; using System.IO.Compression; +using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Serilog; @@ -70,7 +71,7 @@ public Task DecompressAsync(CancellationToken cancellationToken = defaul /// Always returns false to allow exception to propagate. public bool LogAndPropagate( Exception exception, - [System.Runtime.CompilerServices.CallerMemberName] string function = "unknown" + [CallerMemberName] string function = "unknown" ) { logger.Error(exception, "{Function}", function); @@ -85,7 +86,7 @@ public bool LogAndPropagate( /// Always returns true to indicate exception was handled. public bool LogAndHandle( Exception exception, - [System.Runtime.CompilerServices.CallerMemberName] string function = "unknown" + [CallerMemberName] string function = "unknown" ) { logger.Error(exception, "{Function}", function);