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
Fix priorObjectState and postObjectState to string type; fix only objectType in filte...
[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
d5e049e
..
dd32b96
100644
(file)
--- a/
o2ims/service/command/notify_alarm_handler.py
+++ b/
o2ims/service/command/notify_alarm_handler.py
@@
-43,7
+43,7
@@
def notify_alarm_to_smo(
with uow:
alarm = uow.alarm_event_records.get(data.id)
if alarm is None:
with uow:
alarm = uow.alarm_event_records.get(data.id)
if alarm is None:
- logger.
debu
g('Alarm Event {} does not exists.'.format(data.id))
+ logger.
warnin
g('Alarm Event {} does not exists.'.format(data.id))
return
subs = uow.alarm_subscriptions.list()
return
subs = uow.alarm_subscriptions.list()
@@
-99,8
+99,8
@@
def callback_smo(sub: AlarmSubscription, msg: AlarmEvent2SMO,
}
# logger.warning(callback)
callback_data = json.dumps(callback)
}
# logger.warning(callback)
callback_data = json.dumps(callback)
- logger.info('URL: {}
, data: {}'.format(
-
sub_data['callback'],
callback_data))
+ logger.info('URL: {}
'.format(sub_data['callback']))
+
logger.debug('callback data: {}'.format(
callback_data))
o = urlparse(sub_data['callback'])
if o.scheme == 'https':
o = urlparse(sub_data['callback'])
if o.scheme == 'https':