sendMessageUponSuspiciousSpike fix
logging enhancement
@@ -48,8 +48,8 @@ class PluginManager:
logger.debug('Not enough data to detect a {} spike'.format(event))
return None
- if (val / coefficient) < newVal < (val * coefficient):
- logger.debug('New value is within bounds')
+ if (val / coefficient) <= newVal <= (val * coefficient):
+ logger.debug('{}: New value {} is within bounds. Average: {}'.format(event, newVal, val))
return None
message = '{} suspicious spike has been noticed on node {} at {}. ' \
