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

removed obsolete logging methods #107

Merged
merged 1 commit into from Mar 6, 2023
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -27,6 +27,9 @@ bld/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# Rider files
.idea/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
Expand Down Expand Up @@ -213,4 +216,4 @@ FakesAssemblies/
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
_Pvt_Extensions
11 changes: 0 additions & 11 deletions src/MethodBoundaryAspect.Fody/ModuleWeaver.cs
Expand Up @@ -37,7 +37,6 @@ public class ModuleWeaver : BaseModuleWeaver

public ModuleWeaver()
{
InitLogging();
}

public bool DisableCompileTimeMethodInfos { get; set; }
Expand Down Expand Up @@ -132,16 +131,6 @@ public void AddPropertyFilter(string propertyFilter)
PropertyFilter.Add(propertyFilter);
}

private void InitLogging()
{
LogDebug = m => Debug.WriteLine(m);
LogInfo = LogDebug;
LogWarning = LogDebug;
LogWarningPoint = (m, p) => { };
LogError = LogDebug;
LogErrorPoint = (m, p) => { };
}

private void Execute(ModuleDefinition module)
{
_methodInfoCompileTimeWeaver = new MethodInfoCompileTimeWeaver(module)
Expand Down