Skip to content
Snippets Groups Projects
Commit 1303554b authored by Gwenaelle ABEILLE's avatar Gwenaelle ABEILLE
Browse files

logging

parent 2ba72562
No related branches found
No related tags found
No related merge requests found
...@@ -293,8 +293,8 @@ public abstract class TdbCollector extends ArchiverCollector { ...@@ -293,8 +293,8 @@ public abstract class TdbCollector extends ArchiverCollector {
final String desc = "Failed while executing BooleanScalar.addSource() method..."; final String desc = "Failed while executing BooleanScalar.addSource() method...";
throw new ArchivingException(message, reason, ErrSeverity.WARN, desc, "", e); throw new ArchivingException(message, reason, ErrSeverity.WARN, desc, "", e);
} catch (final Exception e) { } catch (final Exception e) {
super.m_logger.trace(ILogger.LEVEL_WARNING, "Unexpected exception during addSource:" super.m_logger.trace(ILogger.LEVEL_WARNING,
+ attributeLightMode.getAttribute_complete_name()); "Unexpected exception during addSource:" + attributeLightMode.getAttribute_complete_name());
super.m_logger.trace(ILogger.LEVEL_WARNING, e); super.m_logger.trace(ILogger.LEVEL_WARNING, e);
} }
} }
...@@ -364,6 +364,8 @@ public abstract class TdbCollector extends ArchiverCollector { ...@@ -364,6 +364,8 @@ public abstract class TdbCollector extends ArchiverCollector {
if (attributeList.size() == 1) { if (attributeList.size() == 1) {
attributeList.setRefreshInterval(m_modeHandler.getRefreshInterval()); attributeList.setRefreshInterval(m_modeHandler.getRefreshInterval());
attributeList.setSynchronizedPeriod(true); attributeList.setSynchronizedPeriod(true);
// force a refresh for newly added attributes
m_logger.trace(ILogger.LEVEL_DEBUG, "start refresh for " + this.getClass());
attributeList.startRefresher(); attributeList.startRefresher();
refreshing = true; refreshing = true;
if (keepingThread != null) { if (keepingThread != null) {
...@@ -371,6 +373,7 @@ public abstract class TdbCollector extends ArchiverCollector { ...@@ -371,6 +373,7 @@ public abstract class TdbCollector extends ArchiverCollector {
} }
} else { } else {
// force a refresh for newly added attributes // force a refresh for newly added attributes
m_logger.trace(ILogger.LEVEL_DEBUG, "FORCING refresh for " + this.getClass());
attributeList.refresh(); attributeList.refresh();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment