Skip to content

Commit 3cc9411

Browse files
committed
Revert FELIX-6173
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1865690 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3141e67 commit 3cc9411

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

  • log/src/main/java/org/apache/felix/log

log/src/main/java/org/apache/felix/log/Log.java

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -194,22 +194,13 @@ synchronized Enumeration<LogEntry> getEntries()
194194
return new LogNodeEnumeration(m_head, m_tail);
195195
}
196196

197-
private String getLoggerNameForEvent(final Bundle bundle, final String defaultName) {
198-
if (bundle != null) {
199-
if (bundle.getSymbolicName() != null) {
200-
return bundle.getSymbolicName().concat(":").concat(bundle.getVersion().toString());
201-
}
202-
}
203-
return defaultName;
204-
}
205-
206197
/** The messages returned for the framework events. */
207198
private static final String[] FRAMEWORK_EVENT_MESSAGES =
208199
{
209200
"FrameworkEvent STARTED",
210201
"FrameworkEvent ERROR",
211202
"FrameworkEvent PACKAGES REFRESHED",
212-
"FrameworkEvent STARTLEVEL CHANGED to ",
203+
"FrameworkEvent STARTLEVEL CHANGED",
213204
"FrameworkEvent WARNING",
214205
"FrameworkEvent INFO"
215206
};
@@ -232,12 +223,8 @@ public void frameworkEvent(final FrameworkEvent event)
232223
}
233224
}
234225

235-
if ( event.getType() == FrameworkEvent.STARTLEVEL_CHANGED) {
236-
message = message.concat(String.valueOf(m_startLevel.getStartLevel()));
237-
}
238-
239226
log(
240-
getLoggerNameForEvent(event.getBundle(), "Events.Framework"),
227+
"Events.Framework",
241228
event.getBundle(),
242229
null,
243230
(eventType == FrameworkEvent.ERROR) ? LogLevel.ERROR : LogLevel.INFO,
@@ -281,7 +268,7 @@ public void bundleChanged(final BundleEvent event)
281268
if (message != null)
282269
{
283270
log(
284-
getLoggerNameForEvent(event.getBundle(), "Events.Bundle"),
271+
"Events.Bundle",
285272
event.getBundle(),
286273
null,
287274
LogLevel.INFO,
@@ -330,7 +317,7 @@ public void serviceChanged(final ServiceEvent event)
330317
}
331318

332319
log(
333-
getLoggerNameForEvent(event.getServiceReference().getBundle(), "Events.Service"),
320+
"Events.Service",
334321
event.getServiceReference().getBundle(),
335322
event.getServiceReference(),
336323
(eventType == ServiceEvent.MODIFIED) ? LogLevel.DEBUG : LogLevel.INFO,

0 commit comments

Comments
 (0)