satchmo.log always resets

3 views
Skip to first unread message

Alessandro Ronchi

unread,
Aug 29, 2009, 2:05:12 PM8/29/09
to Satchmo users
Is it normal that satchmo.log gets truncated every time I reset apache? Is it possible to append data instead of reset it?

--
Alessandro Ronchi

SOASI
Sviluppo Software e Sistemi Open Source
http://www.soasi.com

ANIL KARADAĞ

unread,
Aug 29, 2009, 5:42:06 PM8/29/09
to satchm...@googlegroups.com
yes, you can change
fileLog = logging.FileHandler(os.path.join(LOGDIR, LOGFILE), 'w') to

fileLog = logging.FileHandler(os.path.join(LOGDIR, LOGFILE), 'a'')

line in file which contains satchmo.log configuration.

2009/8/29 Alessandro Ronchi <alessand...@soasi.com>



--
Anıl KARADAĞ
Cihan Bilişim A.Ş. - Yazılım Geliştirme Uzmanı
GYTE- Bilgisayar Müh. Yüksek Lisans öğrencisi
http://anilkaradag.info/blog

Alessandro Ronchi

unread,
Aug 31, 2009, 4:26:56 AM8/31/09
to satchm...@googlegroups.com


2009/8/29 ANIL KARADAĞ <anil.k...@gmail.com>
yes, you can change

Ok, thanks.

Now I get 2 times the same log event, with different formatting:
http://dpaste.com/87603/

This is my logging settings:
http://dpaste.com/87604/

 

ANIL KARADAĞ

unread,
Aug 31, 2009, 6:30:28 AM8/31/09
to satchm...@googlegroups.com
i think more than one same log is relevant to use handler but i have not know why satchmo use it yet.

if you do all of handler lines to comment line, you see one same log but file contains extra log about cache.

 i am searching...



2009/8/31 Alessandro Ronchi <alessand...@soasi.com>
Reply all
Reply to author
Forward
0 new messages