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();
|
||||
|
||||
startLoop();
|
||||
|
||||
System.out.println("ENDED");
|
||||
} catch (Exception e){
|
||||
System.out.println("DataProvider exception: "+e.getMessage());
|
||||
}
|
||||
|
@ -83,6 +83,7 @@ public class DataProvider implements Runnable {
|
|||
private void startLoop() throws Exception{
|
||||
String rawMessage;
|
||||
while ((rawMessage = mainReader.readLine()) != null) {
|
||||
System.out.println(rawMessage);
|
||||
if (rawMessage.startsWith(":")) {
|
||||
handleRegular(rawMessage.substring(1));
|
||||
}
|
||||
|
|
|
@ -19,6 +19,11 @@ public class StreamProvider {
|
|||
}
|
||||
} catch (IOException e){
|
||||
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{
|
||||
|
|
Loading…
Reference in a new issue