[PATCH 1 of 15] Add traceback of exceptions
Matt Mackall
mpm at selenic.com
Wed Aug 24 17:56:34 CDT 2005
On Wed, Aug 24, 2005 at 11:49:09PM +0200, vincent at ricardis.tudelft.nl wrote:
> Patch subject is complete summary.
This series appears to be in the wrong order.
> --- a/hgweb.fcgi Wed Aug 24 15:01:31 2005
> +++ b/hgweb.fcgi Wed Aug 24 15:32:30 2005
> @@ -14,8 +14,10 @@
> except SystemExit:
> pass
> except:
> - # You should probably log tracebacks here
> - pass
> + import traceback
> + req.out.write("Content-type: text/html\r\n\r\n")
> + traceback.print_exc(file=req.out)
> + req.finish()
>
>
> if __name__ == "__main__":
> diff -r ed6ae853bec5 -r f8696a99e846 hgwebdir.fcgi
> --- a/hgwebdir.fcgi Wed Aug 24 15:01:31 2005
> +++ b/hgwebdir.fcgi Wed Aug 24 15:32:30 2005
> @@ -17,8 +17,10 @@
> except SystemExit:
> pass
> except:
> - # You should probably log tracebacks here
> - pass
> + import traceback
> + req.out.write("Content-type: text/html\r\n\r\n")
> + traceback.print_exc(file=req.out)
> + req.finish()
>
>
> if __name__ == "__main__":
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list