diff options
author | Simon Rettberg | 2015-08-25 18:45:10 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-08-25 18:45:10 +0200 |
commit | 1cc3a5cf839bea72093e0d604f8b041dc74bae85 (patch) | |
tree | a72d5fb507f2fb28466ce6f0c53af7769025e770 /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java | |
parent | [server] Group image version delete on deleteImageBase (diff) | |
download | tutor-module-1cc3a5cf839bea72093e0d604f8b041dc74bae85.tar.gz tutor-module-1cc3a5cf839bea72093e0d604f8b041dc74bae85.tar.xz tutor-module-1cc3a5cf839bea72093e0d604f8b041dc74bae85.zip |
[server] Reduce spam when fetching OS and Virt list from master
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java')
-rw-r--r-- | dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java index 903db0c5..2f6bbdbc 100644 --- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java +++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java @@ -5,6 +5,7 @@ import java.util.List; import org.apache.log4j.Logger; import org.apache.thrift.TException; +import org.apache.thrift.transport.TTransportException; import org.openslx.bwlp.sat.database.mappers.DbOsVirt; import org.openslx.bwlp.thrift.iface.OperatingSystem; import org.openslx.thrifthelper.ThriftManager; @@ -31,7 +32,8 @@ public class OperatingSystemList extends CacheBase<List<OperatingSystem>> { try { list = ThriftManager.getMasterClient().getOperatingSystems(); } catch (TException e1) { - LOGGER.warn("Could not fetch OS list from master, using local data...", e1); + LOGGER.warn("Could not fetch OS list from master, using local data...", + e1 instanceof TTransportException ? null : e1); try { return DbOsVirt.getOsList(); } catch (SQLException e) { |