Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of some messages and comments.
[jaceP2P.git] / src / jaceP2P / TokenThread.java
index 08c4195..531a009 100644 (file)
@@ -44,13 +44,13 @@ public class TokenThread extends Thread {
        public void setToken() {
                token = true;
                ScanThreadSuperNode.Instance().setToken(false);
-               System.out.println("the token is put to true in the tokenthread");
+               System.out.println("The token is put to true in the tokenthread");
                try {
                        synchronized (TokenThread.Instance()) {
                                TokenThread.Instance().notify();
                        }
                } catch (Exception e) {
-                       System.out.println("unable to notify :" + e);
+                       System.err.println("Unable to notify :" + e);
                }
                // System.out.println("finished set token");
        }
@@ -104,8 +104,8 @@ public class TokenThread extends Thread {
                                                                        new ForwardCount().start();
                                                                } catch (Exception e) {
 
-                                                                       System.out
-                                                                                       .println("unable to send surplus to "
+                                                                       System.err
+                                                                                       .println("Unable to send surplus to "
                                                                                                        + ((SuperNodeData) liste
                                                                                                                        .get(i)).getIP()
                                                                                                        + " :" + e);
@@ -135,7 +135,7 @@ public class TokenThread extends Thread {
                                System.out.println("Passing token to " + index);
                        } catch (Exception e) {
                                try {
-                                       System.out.println("Unable to send Token to "
+                                       System.err.println("Unable to send Token to "
                                                        + ((SuperNodeData) liste.elementAt(index)).getIP()
                                                        + " :" + e);
                                        /*