watsonpy / watson-framework

A Python 3 web app framework.
BSD 3-Clause "New" or "Revised" License
104 stars 12 forks source link

INIT event triggered multiple times. #5

Closed vivekimsit closed 9 years ago

vivekimsit commented 10 years ago

Hi, I was reading event section here, its written that event.framework.init will be triggered once. I just duplicated the sample code on the same page with a little difference that I added a print message in the listener class.

When I started the server I can see that my message was printed multiple times in the console. I event tried to remove the boolean_once argument but the result was same. Am I issing something or the behavior is buggy?

simoncoulton commented 10 years ago

It's slightly buggy at this stage on the ./console.py rundev command, however when running through a normal webserver (nginx/apache etc) it is only triggered once.