Facing issue with Python loggin logger for printing object value
Mitya Sirenef
msirenef at lightbird.net
Sat Dec 29 15:59:43 EST 2012
More information about the Python-list mailing list
Sat Dec 29 15:59:43 EST 2012
- Previous message (by thread): Facing issue with Python loggin logger for printing object value
- Next message (by thread): Facing issue with Python loggin logger for printing object value
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12/29/2012 03:50 PM, Morten Engvoldsen wrote:
> Hi Dave,
> It is able to log the message with:
> logger.debug("value of payment_line is " +repr(payment_line))
>
> The output is:
> value of payment_line is []
>
> So it means payment_line is an empty list, so may be it could be
reason it's not able to enter into the loop since the message in the for
loop is not logged in the log file.
>
> Thanks and good night.. :)
You can easily test how iteration over empty list works:
>>> l=[]
>>> for x in l: print(x)
...
>>>
i.e. nothing is printed because loop runs 0 times.
-m
--
Lark's Tongue Guide to Python: http://lightbird.net/larks/
- Previous message (by thread): Facing issue with Python loggin logger for printing object value
- Next message (by thread): Facing issue with Python loggin logger for printing object value
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list