Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-23 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  closed
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by Tim Graham ):

 In [changeset:"b1f60460661c8058c511bfb7364dca935c5951ed" b1f60460]:
 {{{
 #!CommitTicketReference repository=""
 revision="b1f60460661c8058c511bfb7364dca935c5951ed"
 Refs #25373 -- Doc'd logging of exceptions during {% include %} rendering.
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.940f13c3556151614525cef1c682a624%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-21 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  closed
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"392f64842f678b6e29a2e5fac65a586d9c9a57ff" 392f6484]:
 {{{
 #!CommitTicketReference repository=""
 revision="392f64842f678b6e29a2e5fac65a586d9c9a57ff"
 Fixed #25373 -- Added warning logging for exceptions during {% include %}
 tag rendering.
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.7f40fcbf3ee6dfb21bf3989bf5814cc6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-21 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by limnick):

 * needs_better_patch:  1 => 0


Comment:

 Should be all cleaned up again. docs and isort are broken on CI right now,
 but they're broken for all PRs and are not caused by my change.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.c12a8022fd3f742160e52c7241e635f6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-19 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+
Changes (by timgraham):

 * needs_better_patch:  0 => 1


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.445e7bef6216e20beac2599536932c72%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-18 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by limnick):

 * needs_better_patch:  1 => 0


Comment:

 should be all cleaned up

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.43e423c9ffabeaf9011966efdbd09b7d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-18 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+
Changes (by timgraham):

 * needs_better_patch:  0 => 1
 * stage:  Ready for checkin => Accepted


Comment:

 Left a few comments for improvement.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.eb7f2f2f190ff6307c775e4ff942a46b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-16 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+-
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by charettes):

 * stage:  Accepted => Ready for checkin


Comment:

 Given a docs review.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.bca9dbcbd123cb7854ba52f9a0bf770f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-14 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by limnick):

 * needs_better_patch:  1 => 0


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.b697c7af6a1f6d554417af4e021346e9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-14 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+
Changes (by charettes):

 * needs_better_patch:  0 => 1


Comment:

 Left some comment on the PR.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.19cbc92210cd9b5717bca800cac3c65b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-14 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by limnick):

 fot ease of review I've created a PR here:
 https://github.com/django/django/pull/5285

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.e1f3d03b4132c2b04763de3835aaeb34%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-11 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by limnick):

 After some further digging it appears the django.template logger added in
 the commit I originally referenced will capture exceptions bubbled through
 this function, however it will also catch things like missing variables in
 templates and expected fallthrough behavior. All of this is at a level of
 DEBUG which seems appropriate.

 In order to be able to log only unexpected exceptions, I'm proposing
 adding WARNING level logging to any uncaught exceptions during import
 templatetag rendering. See attached patch for changes and regression test.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.f677b2b5bd795ddd95977eca11f28ce8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-11 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by limnick):

 * has_patch:  0 => 1


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.a7ecba5bc41e4a559558f9cc80bfba51%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-11 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by limnick):

 * Attachment "template_import_logging.diff" added.


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.fe43a2dde8bb465e42b89554d9841a0a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-11 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  limnick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by limnick):

 * owner:   => limnick
 * status:  new => assigned


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.2020d901082a845a7761885c56aa1245%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-10 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:
 Type:  New feature  |   Status:  new
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by FrankSalad):

 * owner:  FrankSalad =>
 * status:  assigned => new


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.15491e05a133cf8841caddd493706c3f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-10 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+--
 Reporter:  limnick  |Owner:  FrankSalad
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+--
Changes (by FrankSalad):

 * owner:  nobody => FrankSalad
 * status:  new => assigned


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.15ebffbcf235f902b0ede5577bd1f11f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-09 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by timgraham):

 I didn't have an alternate implementation in mind.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.2f8e279a435a744724041978213fedae%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False

2015-09-09 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by limnick):

 if you want these logged via the django.template logger I can put a patch
 together with a fix and a regression test for review

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.94287009760e6b5945ca90945f18852e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25373: Add logging for {% include %} exceptions when template.debug = False (was: Django Admin silently catches exceptions without a chance to log them)

2015-09-09 Thread Django
#25373: Add logging for {% include %} exceptions when template.debug = False
-+
 Reporter:  limnick  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Template system  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by timgraham):

 * needs_better_patch:   => 0
 * component:  contrib.admin => Template system
 * needs_tests:   => 0
 * easy:  1 => 0
 * needs_docs:   => 0
 * type:  Bug => New feature
 * stage:  Unreviewed => Accepted


Comment:

 Updated title to reflect that the issue is really about the template
 system and the `{% include %}` template tag, not the admin. As the docs
 note:

  When debug mode is turned on, an exception like `TemplateDoesNotExist` or
 `TemplateSyntaxError` will be raised; otherwise `{% include %}` silences
 any exception that happens while rendering the included template and
 returns an empty string.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.4da2bd98599ddbe83b41ecbabbd71c62%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.