Le 9 janv. 2014 à 20:47, Tristan Fischer <sph...@dersphere.de> a écrit :

> Hi Benjamin,
> 
> is there any special reason for using xbmc.log() over print?
> 

Main reason is to avoid having too many messages in the log by default.
Addons authors are thus encouraged to use xbmc.log() so that they can enable 
some messages in debug mode only.

> The reason why I still use print in the scraper/api parts of my add-ons is 
> the possibility to use them without XBMC, e.g. for automated tests.


As you have a good reason for using print, that's fine.
So no problem. You can keep it like that.

/Benjamin


> 
> regards,
> sphere
> 
> 
> 
> 2014/1/8 Benjamin Bertrand <bee...@xboxmediacenter.com>
> Updated.
> Please, replace print statement with xbmc.log() next time.
> 
> Cheers
> 
> On Wed, Jan 8, 2014 at 2:30 PM, Tristan Fischer <sph...@dersphere.de> wrote:
> > *addon - plugin.video.trakt_list_manager
> > *version - 0.1.4
> > *url - git://github.com/dersphere/plugin.video.trakt_list_manager
> > *revision - c11cd3e7b778135c86e6a724de0ba7e04e7be267
> > *branch - master
> > *xbmc version - frodo
> >
> > 0.1.4 (08.01.2014)
> >  - fix adding or deleting of movies with only tmdb_id or imdb_id
> >  - fix urlencoding bug (e.g. on movies with colon in title)
> >
> > regards,
> > sphere
> >
> > ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> > Pro!
> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Xbmc-addons mailing list
> > Xbmc-addons@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xbmc-addons
> >
> 

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
Xbmc-addons@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to