node-red-quantum / node-red-contrib-quantum

Quantum computing functionality for Node-RED
https://node-red-quantum.github.io/
Apache License 2.0
18 stars 2 forks source link

Louis/logger #102

Closed louislefevre closed 3 years ago

louislefevre commented 3 years ago

Purpose

Added a simple logger for tracking execution flow. This is particularly useful for debugging unit tests, since the node-red-test-helper fails to give useful information when it comes figuring out what went wrong and where execution ended.

When running either npm start or npm test, a new log will be created in a logs/ directory. A log file contains information about when nodes were initialised, when a nodes input listener was executed, when a nodes Python script was executed, and when errors occurred. This is open to expansion and can be used to log any event.

The CI pipeline has also been updated so that these log files are stored as artifacts and can be downloaded. This can be useful when trying to debug failed workflows.

Changes