Dirk Meyer wrote:
> Rob Shortt wrote:
>
>>Log:
>>Unicode fixes.
>>
>>+ print " %s (%s): %s" % (program.channel.channel, start_time,
>>program.title.encode('latin-1'))
>
>
> You don't like the logger, don't you? Using print is a bad idea in
> general, it won't be in the log files if it runs as a daemon. So you
> should use
Yes, I like the logger. :)
> | log.info(' %s (%s): %s", program.channel.channel, start_time,
> program.title)
>
> As you can see, no unicode handling anymore. I "fixed" the global
> logging code to auto convert string and unicode. IMHO this is a much
> cleaner way.
Since you told me logger handles unicode I've been using it exclusively,
just hadn't gotten around to changing this one yet. It's funny, this is
what I was doing when you told me logger did that.
-Rob
--
-------------------------------------------------------
Rob Shortt | http://tvcentric.com | Freevo
[EMAIL PROTECTED] | http://freevo.sf.net | Free your TV
signature.asc
Description: OpenPGP digital signature
