File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ public BWClient(final BWEventListener eventListener) {
14
14
this (eventListener , false );
15
15
}
16
16
17
+ /**
18
+ * @param debugConnection set to `true` for more explicit error messages (might spam the terminal).
19
+ * `false` by default
20
+ */
17
21
public BWClient (final BWEventListener eventListener , final boolean debugConnection ) {
18
22
Objects .requireNonNull (eventListener );
19
23
this .debugConnection = debugConnection ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ void reconnect(){
95
95
void disconnect () {
96
96
if (debugConnection ) {
97
97
System .err .print ("Disconnect called by: " );
98
- System .err .println (Thread .currentThread ().getStackTrace ()[2 ]. getMethodName () );
98
+ System .err .println (Thread .currentThread ().getStackTrace ()[2 ]);
99
99
}
100
100
if (!connected ) {
101
101
return ;
@@ -134,9 +134,6 @@ boolean connect() {
134
134
}
135
135
catch (Exception e ) {
136
136
System .err .println ("Game table mapping not found." );
137
- if (debugConnection ) {
138
- e .printStackTrace ();
139
- }
140
137
return false ;
141
138
}
142
139
You can’t perform that action at this time.
0 commit comments