Moar debug
This commit is contained in:
parent
1a9ee50874
commit
8ead269844
2 changed files with 7 additions and 1 deletions
|
@ -45,7 +45,7 @@ public class DataProvider implements Runnable {
|
||||||
sendUserNickAndIdent();
|
sendUserNickAndIdent();
|
||||||
|
|
||||||
startLoop();
|
startLoop();
|
||||||
|
System.out.println("ENDED");
|
||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
System.out.println("DataProvider exception: "+e.getMessage());
|
System.out.println("DataProvider exception: "+e.getMessage());
|
||||||
}
|
}
|
||||||
|
@ -83,6 +83,7 @@ public class DataProvider implements Runnable {
|
||||||
private void startLoop() throws Exception{
|
private void startLoop() throws Exception{
|
||||||
String rawMessage;
|
String rawMessage;
|
||||||
while ((rawMessage = mainReader.readLine()) != null) {
|
while ((rawMessage = mainReader.readLine()) != null) {
|
||||||
|
System.out.println(rawMessage);
|
||||||
if (rawMessage.startsWith(":")) {
|
if (rawMessage.startsWith(":")) {
|
||||||
handleRegular(rawMessage.substring(1));
|
handleRegular(rawMessage.substring(1));
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,11 @@ public class StreamProvider {
|
||||||
}
|
}
|
||||||
} catch (IOException e){
|
} catch (IOException e){
|
||||||
System.out.println("Internal issue: StreamProvider->writeToStream() caused I/O exception:\n\t"+e.getMessage());
|
System.out.println("Internal issue: StreamProvider->writeToStream() caused I/O exception:\n\t"+e.getMessage());
|
||||||
|
} catch (NullPointerException npe){
|
||||||
|
System.out.println("Internal issue: StreamProvider->writeToStream() caused NullPointerException exception:\n"
|
||||||
|
+"Server: "+server
|
||||||
|
+"\nMessage: "+message
|
||||||
|
+"\n\t"+npe.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static synchronized void setStream(String server, Socket socket) throws IOException{
|
public static synchronized void setStream(String server, Socket socket) throws IOException{
|
||||||
|
|
Loading…
Reference in a new issue