[vlma-devel] commit: Logging fixes. (Adrien Grand )

git version control git at videolan.org
Sun Sep 14 19:27:09 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sun Sep 14 19:30:06 2008 +0200| [fd6c1792afbc3399a24183d7a42e25c2a8fb29bc] | committer: Adrien Grand 

Logging fixes.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=fd6c1792afbc3399a24183d7a42e25c2a8fb29bc
---

 .../main/java/org/videolan/vlma/OrderGiver.java    |    6 +++---
 .../org/videolan/vlma/monitor/OrderMonitor.java    |    2 +-
 .../org/videolan/vlma/monitor/ServerMonitor.java   |    2 +-
 .../videolan/vlma/monitor/ServerStateMonitor.java  |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/vlma-core/src/main/java/org/videolan/vlma/OrderGiver.java b/vlma-core/src/main/java/org/videolan/vlma/OrderGiver.java
index eb9e690..197db36 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/OrderGiver.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/OrderGiver.java
@@ -232,7 +232,7 @@ public class OrderGiver {
         while(groupIt.hasNext()) {
             logger.warn("The following medias cannot be streamed because there is not enough adapters:");
             for(Media media : groupIt.next()) {
-                logger.warn(" - " + media);
+                logger.warn(" - " + media.getName());
             }
         }
     }
@@ -256,9 +256,9 @@ public class OrderGiver {
                 orders.add(order);
                 nbMediasByServer.put(bestAdapter.getServer(), nbMediasBestAdapter + group.size());
             } else {
-                logger.info("Cannot find any adapter for media group containing the following medias:");
+                logger.warn("Cannot find any adapter for media group containing the following medias:");
                 for(Media media : group) {
-                    logger.info(" - " + media.getName());
+                    logger.warn(" - " + media.getName());
                 }
             }
         }
diff --git a/vlma-core/src/main/java/org/videolan/vlma/monitor/OrderMonitor.java b/vlma-core/src/main/java/org/videolan/vlma/monitor/OrderMonitor.java
index 1477ca3..e0e156f 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/monitor/OrderMonitor.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/monitor/OrderMonitor.java
@@ -180,7 +180,7 @@ public class OrderMonitor implements Monitor {
                 if (shouldRun.get())
                     startOrderMonitoringThread();
             }
-            logger.info("OrderMonitor thread stopped.");
+            logger.debug("OrderMonitor thread stopped.");
         }
     };
 
diff --git a/vlma-core/src/main/java/org/videolan/vlma/monitor/ServerMonitor.java b/vlma-core/src/main/java/org/videolan/vlma/monitor/ServerMonitor.java
index d739900..775d3d1 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/monitor/ServerMonitor.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/monitor/ServerMonitor.java
@@ -112,7 +112,7 @@ public class ServerMonitor implements Monitor {
                 if (shouldRun.get())
                     startUpdateSNMPDataThread();
             }
-            logger.info("ServerMonitor thread stopped.");
+            logger.debug("ServerMonitor thread stopped.");
         }
     };
 
diff --git a/vlma-core/src/main/java/org/videolan/vlma/monitor/ServerStateMonitor.java b/vlma-core/src/main/java/org/videolan/vlma/monitor/ServerStateMonitor.java
index e496e24..23ec0a2 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/monitor/ServerStateMonitor.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/monitor/ServerStateMonitor.java
@@ -108,7 +108,7 @@ public class ServerStateMonitor implements Monitor {
                 if (shouldRun.get())
                     startCheckVLCThread();
             }
-            logger.info("ServerStateMonitor thread stopped.");
+            logger.debug("ServerStateMonitor thread stopped.");
         }
     };
 



More information about the vlma-devel mailing list