londonhackspace / acserver-django

an acserver written in python
6 stars 3 forks source link

acserver doesn't appear to log end of tool use #19

Closed zymurgic closed 5 years ago

zymurgic commented 5 years ago

Looking through the logs, it seems that acserver doesn't successfully log the end of the sessions. If the tool records tool active time, then you get a message when the tool stops, but not when the card is removed from the reader, and the power is switched off.

I've checked the acnode code, and that all seems valid.

zymurgic commented 5 years ago

Actually, looking at the nginx access logs, it looks like acnode isn't calling with status=0 , so we're not seeing anything like POST /15/tooluse/0/xxxxxxxx when it switches off.

zymurgic commented 5 years ago

Fixed bug in acnode-cl