TeamSmil3y / PigeonPost

Python web framework • apparently easy to use
https://docs.pigeon.teamsmiley.org
MIT License
1 stars 0 forks source link

:children_crossing::sparkles: add debug mode #60

Closed lstuma closed 4 months ago

lstuma commented 5 months ago

:bug: debug mode:

🖳 non-debug mode:

@raspitim please share your thoughts on this :)

lstuma commented 5 months ago

i'm pretty sure all of the features described above are relatively easy to implement apart from the reloading modules one idk how i'm gonna do that but all of the other's i can do for sure once i get the time

raspitim commented 5 months ago

I am not sure about the crashing application thing. I think app exceptions should still be caught and a plain status 500 response should be returned.

lstuma commented 4 months ago

@raspitim Hm i think adding an option crash_on_failure in the app settings could be the way to go but yeah i think i agree

lstuma commented 4 months ago

aight so i think the exception handling i'll implement as the following:

to realise this in code i'll do the following:

@raspitim what do you think?

lstuma commented 4 months ago

image

current progress

lstuma commented 4 months ago

aight debug mode is implemented @raspitim

image

lstuma commented 4 months ago

reopening this issue since 1 feature hasn't been implemented yet:

lstuma commented 4 months ago

fixed (closing issue):

lstuma commented 4 months ago

it is a little bit aggressive though so we may need to come back to it at a later point in time @raspitim