Skip to content

Commit

Permalink
Init logger after dc assignment, as name() queries netif
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Aug 4, 2024
1 parent 0fb8915 commit fadf104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/calimero/knxnetip/KNXnetIPRouting.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,11 @@ protected void init(final NetworkInterface netIf, final boolean useMulticastLoop
{
ctrlEndpt = new InetSocketAddress(multicast, DEFAULT_PORT);
dataEndpt = ctrlEndpt;
logger = LogService.getLogger("io.calimero.knxnetip." + name());

try {
dc = newChannel();
dcSysBcast = !multicast.equals(systemBroadcast) ? newChannel() : null;
logger = LogService.getLogger("io.calimero.knxnetip." + name());

var setNetif = netIf;
if (setNetif != null) {
Expand Down

0 comments on commit fadf104

Please sign in to comment.