Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'messages.': 0.04; 'root': 0.04; 'subject:Python': 0.05; 'debug': 0.05; 'discard': 0.05; 'python': 0.09; 'logger': 0.09; 'other)': 0.09; 'threshold': 0.09; 'cc:addr:python-list': 0.10; 'thread': 0.11; 'suggest': 0.11; 'complained': 0.16; 'ignores': 0.16; 'levels,': 0.16; 'subject:issue': 0.16; 'subject:object': 0.16; 'thread.': 0.16; 'wrote:': 0.17; 'url:dev': 0.17; 'issue.': 0.20; 'suggested': 0.20; 'file.': 0.20; "i'd": 0.22; 'cc:2**0': 0.23; 'ignored.': 0.23; 'sets': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'skip:" 20': 0.26; 'am,': 0.27; 'guess': 0.27; 'logging': 0.27; 'order.': 0.27; 'reply.': 0.28; 'run': 0.28; '"please': 0.29; 'directly,': 0.29; 'probably': 0.29; "i'm": 0.29; 'maybe': 0.29; 'that.': 0.30; 'query': 0.30; 'lists': 0.31; 'code': 0.31; 'problem.': 0.32; 'url:python': 0.32; 'file': 0.32; 'info': 0.32; 'says': 0.33; 'messages,': 0.33; 'much.': 0.33; 'thanks': 0.34; 'list': 0.35; 'skip:l 30': 0.35; 'solving': 0.35; 'doing': 0.35; "won't": 0.35; 'something': 0.35; 'next': 0.35; 'list.': 0.35; 'really': 0.36; 'but': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'subject:with': 0.36; 'should': 0.36; 'too': 0.36; 'level': 0.37; '(for': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'url:docs': 0.38; 'instead': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'your': 0.60; 'address': 0.60; 'decided': 0.65; 'reply': 0.66; 'header:Reply-To:1': 0.68; 'contact': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'special': 0.73; 'miss': 0.75; 'increasing': 0.75; 'yourself,': 0.75; 'address,': 0.79; 'domain,': 0.84; 'experiment': 0.84; "it'd": 0.84; 'received:74.208.4.194': 0.84; 'subject:printing': 0.84; 'subject:value': 0.84; 'severe': 0.91 Date: Sat, 29 Dec 2012 11:41:44 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: Morten Engvoldsen Subject: Re: Facing issue with Python loggin logger for printing object value References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Zn+fDBmL+jcG7D9M/7KE1Kc+Vrdu5AyT3p22G/JKDGq OIkUY+kV7DY0hozVDL/gAUQqu6WFQmzJUay0e51hSLiqZoYoUW KW1A3DQrt7/TzkmxBCB4Oru3YnuHMD6Yvfa+reDEOGTK3lbQj6 ZwdViCw3gvu8lxGaxpHtLpLfMKyQdvNElf/9ZtRZwQNlXPbJVm 7ADiGEahcjQsKfxkvl7/uy2IfR0AAoEnMs8+rQ+L0yQPWyqLA5 8PrhBxjw/R5i0Br2k6+c99NoKnaofUblG5h2irgJUTUK4DCJ6n avw1M8LQZkzDhL6UZdlLt7XTJADSN3gCgSfkdpdFg0qB+OsqA= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: d@davea.name List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356799337 news.xs4all.nl 6873 [2001:888:2000:d::a6]:39976 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35752 On 12/29/2012 07:39 AM, Morten Engvoldsen wrote: > Hi Dave, > Thanks for reply. I will really appreciate if you reply to my mail id and > keep python list in cc, since everytime you reply my query i need to search > the reply in the forwarding message of python list. I won't be able to remember to special-case your account, but maybe for the next few days. Far too many others have complained when they get an email directly, either by sending me a request message, by using an address at the "invalid" domain, by hijacking some bogus email address, or by having an autoreply that says "Please don't try to contact me at this address". For a while I considered adding all such people to a kill-file, but decided I'd miss too much. I suggest you get used to reading all messages, or to simply following the thread. (For example, Thunderbird can keep all messages together which are replies to each other) And while I've got you, it'd be nice if you used reply-list yourself, instead of starting a new thread each time. > > Using logger.setLevel(logging.DEBUG) will log only debug message in the log > file and discard other message from log file. So that's not solving the > issue of my problem. I am looking into code to find out the issue. > That's not what setLevel() does. It's a >= comparison, not an == one. http://docs.python.org/2/library/logging """Logger.setLevel(lvl) Sets the threshold for this logger to lvl. Logging messages which are less severe than lvl will be ignored.""" Perhaps you should also read the page: http://docs.python.org/dev/howto/logging search for the phrase " increasing order of severity" where it lists the 5 levels, in order. The default level for the root logger is WARNING, so it ignores DEBUG and INFO messages. I suggested changing it to DEBUG, so those won't get ignored. You probably need to write a 10-line self-contained program to experiment with this, and run it outside of openerp. Chances are openerp is doing something special that you need to conform to. But I'm not going to be able to guess that. -- DaveA