Fix missing string parameters in some log messages (#5210)

This commit is contained in:
Ben Staddon 2019-04-11 18:57:37 -04:00 committed by tterrag
parent 7496e3dbdf
commit 3f70fd49ff

View file

@ -72,7 +72,7 @@ public class ObfuscationReflectionHelper
}
catch (Exception e)
{
LOGGER.error(REFLECTION, "There was a problem getting field index {} from {}", classToAccess.getName(), e);
LOGGER.error(REFLECTION, "There was a problem getting field index {} from {}", fieldIndex, classToAccess.getName(), e);
throw new UnableToAccessFieldException(e);
}
}
@ -105,7 +105,7 @@ public class ObfuscationReflectionHelper
}
catch (IllegalAccessException e)
{
LOGGER.error("There was a problem setting field index {} on type {}", classToAccess.getName(), e);
LOGGER.error("There was a problem setting field index {} on type {}", fieldIndex, classToAccess.getName(), e);
throw new UnableToAccessFieldException(e);
}
}
@ -118,12 +118,12 @@ public class ObfuscationReflectionHelper
}
catch (UnableToFindFieldException e)
{
LOGGER.error("Unable to locate any field {} on type {}", classToAccess.getName(), e);
LOGGER.error("Unable to locate any field {} on type {}", fieldName, classToAccess.getName(), e);
throw e;
}
catch (IllegalAccessException e)
{
LOGGER.error("Unable to set any field {} on type {}", classToAccess.getName(), e);
LOGGER.error("Unable to set any field {} on type {}", fieldName, classToAccess.getName(), e);
throw new UnableToAccessFieldException(e);
}
}