You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by po...@apache.org on 2019/04/21 20:40:52 UTC
[incubator-tamaya] branch master updated: TAMAYA-277: Fix warning
and compilation failure
This is an automated email from the ASF dual-hosted git repository.
pottlinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tamaya.git
The following commit(s) were added to refs/heads/master by this push:
new af270d3 TAMAYA-277: Fix warning and compilation failure
af270d3 is described below
commit af270d36e181922931c451bc47c925fd33c234ee
Author: Hugo Hirsch <gi...@hugo-hirsch.de>
AuthorDate: Sun Apr 21 22:40:35 2019 +0200
TAMAYA-277: Fix warning and compilation failure
Use logger instead of dumping the stacktrace to System.err
---
.../main/java/org/apache/tamaya/core/internal/OSGIServiceContext.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/core/src/main/java/org/apache/tamaya/core/internal/OSGIServiceContext.java b/code/core/src/main/java/org/apache/tamaya/core/internal/OSGIServiceContext.java
index 260bef1..2d67dc8 100644
--- a/code/core/src/main/java/org/apache/tamaya/core/internal/OSGIServiceContext.java
+++ b/code/core/src/main/java/org/apache/tamaya/core/internal/OSGIServiceContext.java
@@ -130,7 +130,7 @@ public class OSGIServiceContext implements ServiceContext{
this.osgiServiceLoader.getBundleContext().registerService(serviceType, t, new Hashtable<>());
}
} catch (Exception e) {
- LOG.log(Level.SERVERE, "Error while getting service.", e);
+ LOG.log(Level.SEVERE, "Error while getting service.", e);
}
}
return services;