Opened 16 years ago

Closed 16 years ago

#75 closed enhancement (fixed)

add "that was weird" button

Reported by: Brian Warner Owned by:
Priority: major Milestone: 0.2.9
Component: documentation Version: 0.2.5
Keywords: logging Cc:

Description

as Zooko suggested in http://allmydata.org/pipermail/tahoe-dev/2008-June/000646.html , the Incident-reporting mechanism in Foolscap ought to have a manual trigger, so application users can push a button that says "that was weird", and cause Foolscap to record an incident.

Actually, the cleanest way to do this is to simply emit a log event at the WEIRD level. Something like:

def that_was_weird_button_pushed(reason):
    log.msg(format="The user pushed the 'that was weird' button: %(reason)s",
            reason=reason, level=log.WEIRD)

Then as long as the default incident-qualifier hasn't been overridden, this will trigger the incident and its reason clearly.. no extra code necessary.

I'll use this ticket to remember that this needs to be documented.

Change History (1)

comment:1 Changed 16 years ago by Brian Warner

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.