More debug

This commit is contained in:
dave 2014-08-26 14:26:05 -07:00
parent 0768b4e179
commit c8e55b5c24
2 changed files with 5 additions and 0 deletions

2
app.py
View File

@ -259,6 +259,8 @@ if __name__ == '__main__' or 'uwsgi' in __name__:
def getRecStatus(self, id):
print(REC)
print(REC.threads)
print(REC.getSelf())
print(REC.getSelf().threads)
return json.dumps({"data":REC.streamStatus(int(id))})
pysite = siteRoot()

View File

@ -78,6 +78,9 @@ class recordTick(Thread):
return self.threads[id].status
def getSelf(self):
return self
def scheduleTick(self):
# schedule tick in the next minute
self.timer.enter(self.timeToNextMinute(), 1, self.tick)