Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Redo release the 2.0.3 image
[pti/o2.git]
/
o2ims
/
service
/
command
/
notify_alarm_handler.py
diff --git
a/o2ims/service/command/notify_alarm_handler.py
b/o2ims/service/command/notify_alarm_handler.py
index
81cbeaa
..
b630d1e
100644
(file)
--- a/
o2ims/service/command/notify_alarm_handler.py
+++ b/
o2ims/service/command/notify_alarm_handler.py
@@
-93,9
+93,7
@@
def callback_smo(notifications: AbstractNotifications, sub: AlarmSubscription,
'perceivedSeverity': alarm_data['perceivedSeverity'],
'extensions': json.loads(alarm_data['extensions'])
}
'perceivedSeverity': alarm_data['perceivedSeverity'],
'extensions': json.loads(alarm_data['extensions'])
}
- # logger.warning(callback)
- callback_data = json.dumps(callback)
logger.info('callback URL: {}'.format(sub_data['callback']))
logger.info('callback URL: {}'.format(sub_data['callback']))
- logger.debug('callback data: {}'.format(
callback_data
))
+ logger.debug('callback data: {}'.format(
json.dumps(callback)
))
- return notifications.send(sub_data['callback'], callback
_data
)
+ return notifications.send(sub_data['callback'], callback)