﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
75	"add ""that was weird"" button"	Brian Warner		"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.
"	enhancement	closed	major	0.2.9	documentation	0.2.5	fixed	logging	
