I wouldn't worry too much about this. I see this type of behavior even when
I'm running on the dev server. I suspect it's just something where the file
handling logger isn't getting flushed correctly at the end. It's not a
satchmo or Django thing - it's just using the python logger.

You could try using something other than the file handler to see if you get
different behavior. However, like I said, I wouldn't lose sleep over it.

-Chris

On Sun, Sep 20, 2009 at 4:48 PM, Michael S <[email protected]> wrote:

>
> Hi,
>
> I am currently developing with satchmo, but on thing worries me a bit.
> the logs somehow look sort of corrupted.
>
> Some log entires show once and one line later partially.
>
> example:
> 2009-09-20 23:40:26,115 root        : INFO     Satchmo Started
> 2009-09-20 23:40:26,460 tieredweight.config: DEBUG    loaded
> 2009-09-20 23:40:26,487 purchaseorder.config: DEBUG    added purchase
> order payments
> 2009-09-20 23:40:26,598 shop.listeners: DEBUG    Added default shop
> listeners
> 2009-09-20 23:40:26,604 sslurllib   : WARNING  ssl is not installed,
> please install it from http://pypi.python.org/pypi/ssl/
> alled, please install it from http://pypi.python.org/pypi/ssl//ssl/
>
> As you can see the last line is a repetition of the line before.
>
>
> logging configuration from local_settings.py:
> #Configure logging
> LOGDIR = os.path.abspath(os.path.dirname(__file__))
> LOGFILE = "satchmo.log"
> logging.basicConfig(level=logging.DEBUG,
>                    format='%(asctime)s %(name)-12s %(levelname)-8s %
> (message)s',
>                    datefmt='%a, %d %b %Y %H:%M:%S',
>                    filename=os.path.join(LOGDIR, LOGFILE),
>                    filemode='w')
>
> # define a Handler which writes INFO messages or higher to the
> sys.stderr
> fileLog = logging.FileHandler(os.path.join(LOGDIR, LOGFILE), 'w')
> fileLog.setLevel(logging.DEBUG)
>
> #fileLog = logging.handlers.RotatingFileHandler(os.path.join(LOGDIR,
> LOGFILE), maxBytes=20971520, backupCount=5)
> #fileLog.setLevel(logging.DEBUG)
> # set a format which is simpler for console use
> formatter = logging.Formatter('%(asctime)s %(name)-12s: %
> (levelname)-8s %(message)s')
> # tell the handler to use this format
> fileLog.setFormatter(formatter)
> # add the handler to the root logger
> logging.getLogger('').addHandler(fileLog)
> logging.getLogger('keyedcache').setLevel(logging.INFO)
> logging.info("Satchmo Started")
>
> my setup is on webfaction: apache with mod_wsgi running django 1.1
> I already set the serverlimit to 1 in httpd.log, but this did not
> solve the issue.
>
> Any help is appreciated,
>
> Mike
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to