Ticket #64 (assigned planned)
asserts and logging for uwiki
| Reported by: | ct | Owned by: | |
|---|---|---|---|
| Priority: | lesser | Milestone: | |
| Component: | uwiki | Keywords: | uwiki lua |
| Cc: | Blocked By: | ||
| Blocking: |
Description
uwiki has currently some ad-hoc 'if loglevel == 1 ..' kinds of things.
- refactor these to a uwiki_log() function
- use assert() whenever tests are required
- override the standard assert() with a new one reporting cgi errors and use the webserver logging
- maybe design this stuff with NoBug in mind (similar api)
Change History
comment:2 Changed 3 years ago by plouj
- Owner plouj deleted
I've completed the first point and the result is available in the master of my public repository: http://git.pipapo.org/?p=uwiki/plouj;a=summary .
comment:3 Changed 3 years ago by ct
- Owner set to ct
cehteh will merge ploujs work, close this ticket and open new tickets for any pending work.
comment:5 Changed 3 years ago by mridkash
- Owner changed from ct to mridkash
- Priority changed from normal to lesser
- Status changed from assigned to accepted
now only using assert() for errors. And for debugging we use the tabledebug library.
Later on, I'm planning to override global assert with a new function which also sets the http header to error (501) and auto redirects (http request) to a nicer "server made a boo boo" page with a link to report error. This will prevent the users from getting jargon filled error pages. Error info is still available to the server admin via apache errorlog.
