LOC-6 Switch to shorter values and insert print for testing
author B Tasker
()
committer B Tasker
()
commit 6aad0d3551218f84dc186b6333323d78d49574f5
tree a8b9042e3a9b6cdb68d38c4473e25224474ba523
parent 0abfcf7dc1312906a2b3fc68d03379964dd659fd
LOC-6 Switch to shorter values and insert print for testing

Configures to run the scheduler every minute and expire messages after a minute.

Created a room, joined it, posted some messages and then left.

Scheduler dumped the following to stdout

1526729206.144380 Request start
{u'action': u'schedulerTrigger', u'pass': u'GRu5yYY8ngPGtBfbl6wYTdVA7R5CtYPuTjkG4Xh2SfcClhdEaMQmx9JCWhqQDCtg'}
Tidying
Start 8 messages
End 8 messages
127.0.0.1 - - [19/May/2018 12:26:46] "POST / HTTP/1.1" 200 -
1526729266.210174 Request start
{u'action': u'schedulerTrigger', u'pass': u'GRu5yYY8ngPGtBfbl6wYTdVA7R5CtYPuTjkG4Xh2SfcClhdEaMQmx9JCWhqQDCtg'}
Tidying
Start 8 messages
End 0 messages
127.0.0.1 - - [19/May/2018 12:27:46] "POST / HTTP/1.1" 200 -
1526729326.238788 Request start
{u'action': u'schedulerTrigger', u'pass': u'GRu5yYY8ngPGtBfbl6wYTdVA7R5CtYPuTjkG4Xh2SfcClhdEaMQmx9JCWhqQDCtg'}
Tidying
Start 0 messages
End 0 messages

As the auto-purge is an important function, should probably make the period configurable so that we can write automated tests to verify the behaviour.
server/LocalChat.py