Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #644 (closed enhancement: fixed)

Opened 13 years ago

Last modified 12 years ago

log_debug_info_filter.on comment

Reported by: anonymous Owned by: jorge.vargas
Priority: normal Milestone: 1.0.2
Component: Documentation Version:
Severity: normal Keywords:
Cc:

Description

It took a bit of searching to figure out how to turn off the "Build time: 0.327s, Page size: 1.35KB" message. It was via the configuration option

# Disable the debug output at the end on pages.
# log_debug_info_filter.on = True

The comment does not agree with the code. Uncommenting the code keeps the debug information enabled. I suggest changing the "True" to "False".

I would have found this option easier if the comment was phrased

# Uncomment to disable the debug output at the end on pages.
# This includes the "Build time: ... Page size: ..." message.
# log_debug_info_filter.on = False

because I at first thought the message was generated by the master kid or some other template, and a grep found nothing.

Change History

comment:1 Changed 13 years ago by andy@…

In 0.9a4 this config option appears to have no effect; the size/time debug messages do not show up.

comment:2 Changed 13 years ago by jardous

I remeber it worked in 8.x by default but I can not get it work now (for 9.x or 1.x)

comment:3 Changed 13 years ago by elvelind

It works for me on a newly quickstarted project. could you give some more info like tg versions etc.?

comment:4 Changed 13 years ago by jardous

Yes, it works for new quickstarted app but not for older (created with 9.x). Now, TG version is the latest svn (1.1a0). dev.cfg looks like:

[global]
# This is where all of your settings go for your development environment
# Settings that are the same for both development and production
# (such as template engine, encodings, etc.) all go in 
# premind/config/app.cfg

# DATABASE

# pick the form for your database
# sqlobject.dburi="postgres://username@hostname/databasename"
# sqlobject.dburi="mysql://username:password@hostname:port/databasename"
# sqlobject.dburi="sqlite:///file_name_and_path"

# If you have sqlite, here's a simple default to get you started
# in development
sqlobject.dburi="sqlite://%(current_dir_uri)s/premind.sqlite"


# if you are using a database or table type without transactions
# (MySQL default, for example), you should turn off transactions
# by prepending notrans_ on the uri
# sqlobject.dburi="notrans_mysql://username:password@hostname:port/databasename"

# for Windows users, sqlite URIs look like:
# sqlobject.dburi="sqlite:///drive_letter:/path/to/file"


# SERVER

# Some server parameters that you may want to tweak
server.socket_port=8088

# Enable the debug output at the end on pages.

server.environment="development"
autoreload.package="premind"


# Set to True if you'd like to abort execution if a controller gets an
# unexpected parameter. False by default
tg.strict_parameters = True

#i18n.default_locale='cs'
session_filter.on = True
log_debug_info_filter.on = True

# LOGGING
# Logging configuration generally follows the style of the standard
# Python logging module configuration. Note that when specifying
# log format messages, you need to use *() for formatting variables.
# Deployment independent log configuration is in premind/config/log.cfg
[logging]

[[loggers]]
[[[premind]]]
level='DEBUG'
qualname='premind'
handlers=['debug_out']

[[[allinfo]]]
level='INFO'
handlers=['debug_out']

[[[access]]]
level='INFO'
qualname='turbogears.access'
handlers=['access_out']
propagate=0


comment:5 Changed 13 years ago by elvelind

First of. I recommend you use the 1.0 branch svn instead of 1.1 unless you have some special reason. Secondly. Using your config works on both 1.1 and 0.9a9 for me.

comment:6 Changed 13 years ago by jorge.vargas

  • Component changed from CherryPy to Docs
  • Milestone set to 1.0b2

based on elvelind's comment I'm putting this up for a documentation task

comment:7 Changed 13 years ago by jorge.vargas

  • Owner changed from anonymous to jorge.vargas

comment:8 Changed 12 years ago by alberto

  • Milestone changed from 1.0b2 to 1.1

comment:9 Changed 12 years ago by jorge.vargas

  • Milestone changed from 1.1 to 1.0.2

comment:10 Changed 12 years ago by jorge.vargas

  • Status changed from new to closed
  • Resolution set to fixed

it seems like someone forgot to close this.

Note: See TracTickets for help on using tickets.