Better logging: INFO log when running a task and include task descriptor
if an error occurrs running the task
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@778507 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/ComponentActorThread.java b/scr/src/main/java/org/apache/felix/scr/impl/ComponentActorThread.java
index 8a075cd..7aa20ef 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/ComponentActorThread.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/ComponentActorThread.java
@@ -81,12 +81,12 @@
// otherwise execute the task, log any issues
try
{
- Activator.log( LogService.LOG_DEBUG, null, "Running task [" + task + "]", null );
+ Activator.log( LogService.LOG_INFO, null, "Running task: " + task, null );
task.run();
}
catch ( Throwable t )
{
- Activator.log( LogService.LOG_ERROR, null, "Unexpected problem executing task", t );
+ Activator.log( LogService.LOG_ERROR, null, "Unexpected problem executing task " + task, t );
}
}
}