You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2019/11/07 10:00:16 UTC

[isis] 02/02: ISIS-2158: replaces System.err.println with log.info(...) calls in IsisSystemEnvironment

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/isis.git

commit ada5cd20d1dec64e415949c153ef8fa3ada8d3fb
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Nov 7 09:59:58 2019 +0000

    ISIS-2158: replaces System.err.println with log.info(...) calls in IsisSystemEnvironment
---
 .../isis/commons/internal/environment/IsisSystemEnvironment.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/commons/src/main/java/org/apache/isis/commons/internal/environment/IsisSystemEnvironment.java b/core/commons/src/main/java/org/apache/isis/commons/internal/environment/IsisSystemEnvironment.java
index 3a211cc..ff803a5 100644
--- a/core/commons/src/main/java/org/apache/isis/commons/internal/environment/IsisSystemEnvironment.java
+++ b/core/commons/src/main/java/org/apache/isis/commons/internal/environment/IsisSystemEnvironment.java
@@ -60,7 +60,7 @@ public class IsisSystemEnvironment {
         
         this.iocContainer = IocContainerSpring.of(springContext);
         
-        System.err.println("####### IsisSystemEnvironment postconst " + this.hashCode());    
+        log.info("postConstruct (hashCode = {})", this.hashCode());
         
         // when NOT bootstrapped with Spring, postConstruct() never gets called
         
@@ -79,13 +79,13 @@ public class IsisSystemEnvironment {
     
     @PreDestroy
     public void preDestroy() {
-        System.err.println("####### IsisSystemEnvironment destroy " + this.hashCode());
+        log.info("preDestroy (hashCode = {})", this.hashCode());
     }
     
     @EventListener(ContextRefreshedEvent.class)
     public void onContextRefreshed(ContextRefreshedEvent event) {
         // happens after all @PostConstruct
-        log.info("Context was refreshed.");
+        log.info("onContextRefreshed");
     }
     
     @EventListener(ContextClosedEvent.class)