fix: disable weaver registered twice logs on ILPP again

This commit is contained in:
vis2k 2021-09-16 13:51:36 +08:00
parent bb61c5324f
commit e4305b9d97
2 changed files with 8 additions and 2 deletions

View File

@ -35,7 +35,10 @@ internal void Register(TypeReference dataType, MethodReference methodReference)
{
if (readFuncs.ContainsKey(dataType))
{
Log.Warning($"Registering a Read method for {dataType.FullName} when one already exists", methodReference);
// TODO enable this again later.
// Reader has some obsolete functions that were renamed.
// Don't want weaver warnings for all of them.
//Log.Warning($"Registering a Read method for {dataType.FullName} when one already exists", methodReference);
}
// we need to import type when we Initialize Readers so import here in case it is used anywhere else

View File

@ -35,7 +35,10 @@ public void Register(TypeReference dataType, MethodReference methodReference)
{
if (writeFuncs.ContainsKey(dataType))
{
Log.Warning($"Registering a Write method for {dataType.FullName} when one already exists", methodReference);
// TODO enable this again later.
// Writer has some obsolete functions that were renamed.
// Don't want weaver warnings for all of them.
//Log.Warning($"Registering a Write method for {dataType.FullName} when one already exists", methodReference);
}
// we need to import type when we Initialize Writers so import here in case it is used anywhere else