org/sonews/config/BackendConfig.java
changeset 33 f9bf183447d1
parent 12 bb6990c0dd1a
     1.1 --- a/org/sonews/config/BackendConfig.java	Thu Aug 20 14:31:19 2009 +0200
     1.2 +++ b/org/sonews/config/BackendConfig.java	Sun Aug 29 17:03:21 2010 +0200
     1.3 @@ -18,6 +18,7 @@
     1.4  
     1.5  package org.sonews.config;
     1.6  
     1.7 +import java.util.logging.Level;
     1.8  import org.sonews.util.Log;
     1.9  import org.sonews.storage.StorageBackendException;
    1.10  import org.sonews.storage.StorageManager;
    1.11 @@ -64,7 +65,7 @@
    1.12        {
    1.13          if(StorageManager.current() == null)
    1.14          {
    1.15 -          Log.msg("Warning: BackendConfig not available, using default.", false);
    1.16 +          Log.get().warning("BackendConfig not available, using default.");
    1.17            return defaultValue;
    1.18          }
    1.19  
    1.20 @@ -86,7 +87,7 @@
    1.21      }
    1.22      catch(StorageBackendException ex)
    1.23      {
    1.24 -      Log.msg(ex.getMessage(), false);
    1.25 +      Log.get().log(Level.SEVERE, "Storage backend problem", ex);
    1.26        return defaultValue;
    1.27      }
    1.28    }