Ticket #64 (assigned planned)

Opened 3 years ago

Last modified 2 years ago

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:1 Changed 3 years ago by plouj

  • Owner set to plouj
  • Status changed from new to assigned

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:4 Changed 3 years ago by ct

  • Type changed from planned to todo

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.

comment:6 Changed 3 years ago by ct

  • Keywords uwiki lua added

comment:7 Changed 2 years ago by ct

  • Owner mridkash deleted
  • Status changed from accepted to assigned
  • Type changed from todo to planned

stale ticket, revoke assignment. implementing a generic logging/debugging tool would be quite some help tough.

comment:8 Changed 2 years ago by ct

unassigned, no progress

Note: See TracTickets for help on using tickets.