| Conditions | 2 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | '''save full cycle data''' |
||
| 8 | def when_save(channel, method, properties, body): |
||
| 9 | '''event handler when log event is raised''' |
||
| 10 | try: |
||
| 11 | print("[{0}] Received save message".format(COMPONENTSAVE.app.now())) |
||
| 12 | msg = COMPONENTSAVE.app.messagedecode_configuration(body) |
||
| 13 | entries = dosave(msg) |
||
| 14 | COMPONENTSAVE.app.enqueue(entries) |
||
| 15 | |||
| 16 | except Exception as ex: |
||
| 17 | COMPONENTSAVE.app.logexception(ex) |
||
| 18 | |||
| 48 |