[Answered ]-South's syncdb/migrate creates pages of output?

2👍

How is Your logging configured?

I have turned much of the output by configuring logging to higher level, as in:

[formatters]
keys=simple

[handlers]
keys=console

[loggers]
keys=root,south

[formatter_simple]
format=%(asctime)s %(levelname)7s %(message)s
datefmt=%Y-%m-%d %H:%M:%S

[handler_console]
class=StreamHandler
args=[]
formatter=simple

[logger_root]
level=INFO
qualname=root
handlers=console

[logger_south]
level=INFO
qualname=south
handlers=console

Also beware that logging config has to be called AFTER south logging has been imported, because of some magic. From my project, in my settings:

# south is setting logging on import-time; import it before setting our logger
# so it is not overwriting our settings
try:
    import south.logger
except ImportError:
    pass

import logging.config
if LOGGING_CONFIG_FILE:
    logging.config.fileConfig(LOGGING_CONFIG_FILE)
👤Almad

Leave a comment