Doodle3D / doodle3d-firmware

The API of the Doodle3D WiFi box. This can for example talk to print3d, save settings, update the firmware etc.
www.doodle3d.com
GNU General Public License v2.0
13 stars 9 forks source link

Improve printer/print logging #58

Closed peteruithoven closed 8 years ago

peteruithoven commented 8 years ago

Per print part we're logging:

03-09 15:32:54 [ENTR] (info)   : POST request for printer/print (remote IP/port: 192.168.10.179/52586)
03-09 15:32:54 [APRN] (info)   : API:printer/print
03-09 15:32:54 [APRN] (info)   :   hasControl: true
09-03 15:32:54 [COMM] (info)   : starting transmit of 89179 bytes of gcode data, maximum packet size is 1016
09-03 15:32:56 [COMM] (info)   : gcode data sent in 90 packets (2672 msecs)

We can probably remove the API:printer/print. When there isn't control a error is probably logged, or the response, so we could also remove the hasControl logging. I would move those COMM logs to a higher log level, like debug.

It might however be insightful to log print sequence numbers.