Skip to content

Commit efd2b1e

Browse files
committed
Minor fix
1 parent 84ab708 commit efd2b1e

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

config-layers/common/io/vertx/ext/web/handler/sockjs/BridgeOptions.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ inboundAddressRegex=
77
outboundAddressRegex=
88
inboundRequiredAuthority=
99
outboundRequiredAuthority=
10+
log=true

src/main/java/io/vertx/ext/web/handler/sockjs/BridgeOptionsExt.java

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
package io.vertx.ext.web.handler.sockjs;
22

3+
import com.google.common.base.Joiner;
4+
import com.google.common.base.MoreObjects;
35
import in.erail.glue.annotation.StartService;
46
import java.util.List;
7+
import org.apache.logging.log4j.Logger;
58

69
/**
710
*
811
* @author vinay
912
*/
1013
public class BridgeOptionsExt extends BridgeOptions {
1114

15+
private Logger mLog;
1216
private List<String> mInboundAddress;
1317
private List<String> mOutboundAddress;
1418

@@ -19,7 +23,20 @@ public class BridgeOptionsExt extends BridgeOptions {
1923
private List<String> mOutboundRequiredAuthority;
2024

2125
@StartService
22-
void start() {
26+
public void start() {
27+
28+
getLog().debug(() -> {
29+
return MoreObjects
30+
.toStringHelper(BridgeOptionsExt.class.getCanonicalName())
31+
.add("InboundAddress", Joiner.on(",").join(mInboundAddress))
32+
.add("OutboundAddress", Joiner.on(",").join(mOutboundAddress))
33+
.add("InboundAddressRegex", Joiner.on(",").join(mInboundAddressRegex))
34+
.add("OutboundAddressRegex", Joiner.on(",").join(mOutboundAddressRegex))
35+
.add("InboundRequiredAuthority", Joiner.on(",").join(mInboundRequiredAuthority))
36+
.add("OutboundRequiredAuthority", Joiner.on(",").join(mOutboundRequiredAuthority))
37+
.toString();
38+
});
39+
2340
getInboundAddress()
2441
.stream()
2542
.forEachOrdered((rule) -> {
@@ -117,4 +134,12 @@ public void setOutboundRequiredAuthority(List<String> pOutboundRequiredAuthority
117134
this.mOutboundRequiredAuthority = pOutboundRequiredAuthority;
118135
}
119136

137+
public Logger getLog() {
138+
return mLog;
139+
}
140+
141+
public void setLog(Logger pLog) {
142+
this.mLog = pLog;
143+
}
144+
120145
}

0 commit comments

Comments
 (0)