diff options
Diffstat (limited to '')
-rw-r--r-- | java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java b/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java index 9fe13020a6..87f115df7f 100644 --- a/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java +++ b/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java @@ -144,6 +144,12 @@ public abstract class Monitor { messageId, (Object[])messageParameters); monitor.problem(problem); + } else { + System.out.println("Attempt to report warning with id " + + messageId + + " from class " + + reportingObject.getClass().getName() + + " but the monitor object was null"); } } @@ -171,6 +177,12 @@ public abstract class Monitor { messageId, (Object[])messageParameters); monitor.problem(problem); + } else { + System.out.println("Attempt to report error with id " + + messageId + + " from class " + + reportingObject.getClass().getName() + + " but the monitor object was null"); } } @@ -198,6 +210,12 @@ public abstract class Monitor { messageId, cause); monitor.problem(problem); + } else { + System.out.println("Attempt to report error with id " + + messageId + + " from class " + + reportingObject.getClass().getName() + + " but the monitor object was null"); } } |