Refactor - eliminate non-constant string concatenation from debug and trace (#7336)

* eliminate non-constant string concatenation from debug and trace

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

* adjustments

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
This commit is contained in:
Sally MacFarlane
2024-07-18 11:29:17 +10:00
committed by GitHub
parent cee973d429
commit 39e276fd10
7 changed files with 27 additions and 16 deletions

View File

@@ -101,7 +101,10 @@ public class UpnpNatManager extends AbstractNatManager {
new BesuUpnpRegistryListener() {
@Override
public void remoteDeviceAdded(final Registry registry, final RemoteDevice device) {
LOG.debug("UPnP Device discovered: " + device.getDetails().getFriendlyName());
LOG.atDebug()
.setMessage("UPnP Device discovered: {}")
.addArgument(device.getDetails().getFriendlyName())
.log();
inspectDeviceRecursive(device, recognizedServices.keySet());
}
};