]> source.dussan.org Git - archiva.git/commitdiff
Toning down the exception messages.
authorJoakim Erdfelt <joakime@apache.org>
Fri, 9 Mar 2007 16:13:36 +0000 (16:13 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Fri, 9 Mar 2007 16:13:36 +0000 (16:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@516446 13f79535-47bb-0310-9956-ffa450edef68

archiva-core/src/main/java/org/apache/maven/archiva/repositories/DefaultActiveManagedRepositories.java

index ca8b0410d089e881382727409761a9a781637fa3..b01ce97f8eecac54fe3d92ac30b63b1882ec321b 100644 (file)
@@ -45,6 +45,7 @@ import org.codehaus.plexus.registry.Registry;
 import org.codehaus.plexus.registry.RegistryListener;
 
 import java.io.File;
+import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.util.Iterator;
 import java.util.List;
@@ -315,9 +316,15 @@ public class DefaultActiveManagedRepositories
                     lastDataRefreshTime = stats.getTimestampFinished();
                 }
             }
-            catch ( IOException e )
+            catch ( FileNotFoundException e)
             {
                 getLogger().info(
+                                  "No previous datarefresh timestamp available, as "
+                                      + DataRefreshExecutor.DATAREFRESH_FILE + " has never been generated." );
+            }
+            catch ( IOException e )
+            {
+                getLogger().warn(
                                   "Unable to load " + DataRefreshExecutor.DATAREFRESH_FILE
                                       + " to determine last refresh timestamp: " + e.getMessage(), e );
             }