Skip to content
Snippets Groups Projects
Commit 45b18eab authored by Gregor Maier's avatar Gregor Maier
Browse files

Add trace log message when storage listeneres are notified.

parent 50712e44
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ import net.floodlightcontroller.storage.web.StorageWebRoutable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@LogMessageCategory("System Database")
public abstract class AbstractStorageSource
implements IStorageSourceService, IFloodlightModule {
......@@ -460,6 +461,9 @@ public abstract class AbstractStorageSource
" storage listeners",
recommendation=LogMessageDoc.GENERIC_ACTION)
protected synchronized void notifyListeners(StorageSourceNotification notification) {
if (logger.isTraceEnabled()) {
logger.trace("Notifying storage listeneres: {}", notification);
}
String tableName = notification.getTableName();
Set<Object> keys = notification.getKeys();
Set<IStorageSourceListener> tableListeners = listeners.get(tableName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment