Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- The ``production.ini`` generated by all paster templates now have an

  effective logging level of WARN, which prevents e.g. SQLAlchemy statement
  logging and other inappropriate output.

- The ``production.ini`` of the ``pyramid_routesalchemy`` and
  ``pyramid_alchemy`` paster templates did not have a ``sqlalchemy`` logger
  section, preventing ``paster serve production.ini`` from working.

- The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates used
  the ``{{package}}`` variable in a place where it should have used the
  ``{{project}}`` variable, causing applications created with uppercase
  letters e.g. ``paster create -t pyramid_routesalchemy Dibbus`` to fail to
  start when ``paster serve development.ini`` was used against the result.
  See https://github.com/Pylons/pyramid/issues/#issue/107

Closes #107
  • Loading branch information...
commit a87a68d83f713ed3cd81011b486178179e3b413e 1 parent 2228ef5
@mcdonc mcdonc authored
View
21 CHANGES.txt
@@ -1,3 +1,24 @@
+Next release
+============
+
+Bug Fixes
+---------
+
+- The ``production.ini`` generated by all paster templates now have an
+ effective logging level of WARN, which prevents e.g. SQLAlchemy statement
+ logging and other inappropriate output.
+
+- The ``production.ini`` of the ``pyramid_routesalchemy`` and
+ ``pyramid_alchemy`` paster templates did not have a ``sqlalchemy`` logger
+ section, preventing ``paster serve production.ini`` from working.
+
+- The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates used
+ the ``{{package}}`` variable in a place where it should have used the
+ ``{{project}}`` variable, causing applications created with uppercase
+ letters e.g. ``paster create -t pyramid_routesalchemy Dibbus`` to fail to
+ start when ``paster serve development.ini`` was used against the result.
+ See https://github.com/Pylons/pyramid/issues/#issue/107
+
1.0b1 (2011-01-21)
==================
View
4 docs/tutorials/wiki/src/authorization/production.ini
@@ -50,11 +50,11 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_tutorial]
-level = INFO
+level = WARN
handlers =
qualname = tutorial
View
4 docs/tutorials/wiki/src/basiclayout/production.ini
@@ -50,11 +50,11 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_tutorial]
-level = INFO
+level = WARN
handlers =
qualname = tutorial
View
4 docs/tutorials/wiki/src/models/production.ini
@@ -50,11 +50,11 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_tutorial]
-level = INFO
+level = WARN
handlers =
qualname = tutorial
View
4 docs/tutorials/wiki/src/views/production.ini
@@ -50,11 +50,11 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_tutorial]
-level = INFO
+level = WARN
handlers =
qualname = tutorial
View
12 docs/tutorials/wiki2/src/authorization/production.ini
@@ -49,14 +49,22 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_tutorial]
-level = INFO
+level = WARN
handlers =
qualname = tutorial
+[logger_sqlalchemy]
+level = WARN
+handlers =
+qualname = sqlalchemy.engine
+# "level = INFO" logs SQL queries.
+# "level = DEBUG" logs SQL queries and results.
+# "level = WARN" logs neither. (Recommended for production systems.)
+
[handler_console]
class = StreamHandler
args = (sys.stderr,)
View
12 docs/tutorials/wiki2/src/basiclayout/production.ini
@@ -49,14 +49,22 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_tutorial]
-level = INFO
+level = WARN
handlers =
qualname = tutorial
+[logger_sqlalchemy]
+level = WARN
+handlers =
+qualname = sqlalchemy.engine
+# "level = INFO" logs SQL queries.
+# "level = DEBUG" logs SQL queries and results.
+# "level = WARN" logs neither. (Recommended for production systems.)
+
[handler_console]
class = StreamHandler
args = (sys.stderr,)
View
12 docs/tutorials/wiki2/src/models/production.ini
@@ -49,14 +49,22 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_tutorial]
-level = INFO
+level = WARN
handlers =
qualname = tutorial
+[logger_sqlalchemy]
+level = WARN
+handlers =
+qualname = sqlalchemy.engine
+# "level = INFO" logs SQL queries.
+# "level = DEBUG" logs SQL queries and results.
+# "level = WARN" logs neither. (Recommended for production systems.)
+
[handler_console]
class = StreamHandler
args = (sys.stderr,)
View
12 docs/tutorials/wiki2/src/views/production.ini
@@ -49,14 +49,22 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_tutorial]
-level = INFO
+level = WARN
handlers =
qualname = tutorial
+[logger_sqlalchemy]
+level = WARN
+handlers =
+qualname = sqlalchemy.engine
+# "level = INFO" logs SQL queries.
+# "level = DEBUG" logs SQL queries and results.
+# "level = WARN" logs neither. (Recommended for production systems.)
+
[handler_console]
class = StreamHandler
args = (sys.stderr,)
View
6 pyramid/paster_templates/alchemy/development.ini_tmpl
@@ -1,5 +1,5 @@
-[app:{{package}}]
-use = egg:{{package}}
+[app:{{project}}]
+use = egg:{{project}}
reload_templates = true
debug_authorization = false
debug_notfound = false
@@ -12,7 +12,7 @@ sqlalchemy.url = sqlite:///%(here)s/{{project}}.db
pipeline =
egg:WebError#evalerror
tm
- {{package}}
+ {{project}}
[filter:tm]
use = egg:repoze.tm2#tm
View
12 pyramid/paster_templates/alchemy/production.ini_tmpl
@@ -49,14 +49,22 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_{{package_logger}}]
-level = INFO
+level = WARN
handlers =
qualname = {{package}}
+[logger_sqlalchemy]
+level = WARN
+handlers =
+qualname = sqlalchemy.engine
+# "level = INFO" logs SQL queries.
+# "level = DEBUG" logs SQL queries and results.
+# "level = WARN" logs neither. (Recommended for production systems.)
+
[handler_console]
class = StreamHandler
args = (sys.stderr,)
View
2  pyramid/paster_templates/routesalchemy/development.ini_tmpl
@@ -12,7 +12,7 @@ sqlalchemy.url = sqlite:///%(here)s/{{project}}.db
pipeline =
egg:WebError#evalerror
tm
- {{package}}
+ {{project}}
[filter:tm]
use = egg:repoze.tm2#tm
View
12 pyramid/paster_templates/routesalchemy/production.ini_tmpl
@@ -49,14 +49,22 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_{{package_logger}}]
-level = INFO
+level = WARN
handlers =
qualname = {{package}}
+[logger_sqlalchemy]
+level = WARN
+handlers =
+qualname = sqlalchemy.engine
+# "level = INFO" logs SQL queries.
+# "level = DEBUG" logs SQL queries and results.
+# "level = WARN" logs neither. (Recommended for production systems.)
+
[handler_console]
class = StreamHandler
args = (sys.stderr,)
View
4 pyramid/paster_templates/starter/production.ini_tmpl
@@ -43,11 +43,11 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_{{package_logger}}]
-level = INFO
+level = WARN
handlers =
qualname = {{package}}
View
4 pyramid/paster_templates/zodb/production.ini_tmpl
@@ -50,11 +50,11 @@ keys = console
keys = generic
[logger_root]
-level = INFO
+level = WARN
handlers = console
[logger_{{package_logger}}]
-level = INFO
+level = WARN
handlers =
qualname = {{package}}

0 comments on commit a87a68d

Please sign in to comment.
Something went wrong with that request. Please try again.