Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of some messages and comments.
[jaceP2P.git] / src / jaceP2P / ScanThreadSpawner.java
index 412c0d7..b1b6969 100644 (file)
@@ -35,7 +35,7 @@ public class ScanThreadSpawner extends Thread {
 
        public static ScanThreadSpawner Instance() {
                if (Instance == null) {
-                       System.out.println("creating new ScanThreadSpawner ");
+                       System.out.println("Creating new ScanThreadSpawner ");
                        Instance = new ScanThreadSpawner();
                }
                return Instance;
@@ -53,7 +53,7 @@ public class ScanThreadSpawner extends Thread {
 
        @SuppressWarnings("static-access")
        public void run() {
-               System.out.println("start ScanThreadSpawner.......");
+               System.out.println("Start ScanThreadSpawner.......");
                while (running) {
                        // System.out.println("ScanThread alive.......");
                        try {
@@ -92,10 +92,10 @@ public class ScanThreadSpawner extends Thread {
                                boolean response = false;
                                try {
                                        response = previousSpawner.ping();
-                                       System.out.println("previous spawner is still alive");
+                                       System.out.println("Previous spawner is still alive");
                                } catch (Exception e) {
                                        System.out
-                                                       .println("the previous spawner is officially dead "
+                                                       .println("The previous spawner is officially dead "
                                                                        + e);
                                }
                                if (response == false) {
@@ -104,7 +104,7 @@ public class ScanThreadSpawner extends Thread {
                                }
                        }
                } catch (Exception e) {
-                       System.out.println("error in test neighbor: " + e);
+                       System.err.println("Error in test neighbor: " + e);
                }
        }
 }