[Twisted-Python] eated traceback when decorate method already decorated by inlineCallbacks

2013-03-14 Thread Sergey Gerasimov
Hello to all! Why traceback doesn't include call of g() here? import traceback from twisted.internet import defer, reactor def decor1(f, *argv, **kw): @defer.inlineCallbacks def decor1(): try: res = yield f(*argv, **kw) defer.returnValue(res)

[Twisted-Python] logging in twisted based projects

2013-03-14 Thread Sergey Gerasimov
I'm implementing some project based on twisted. I would like to use some logging mechanism in my modules and see both twisted generated log records and log records from my modules and be able to filter log records by level and source (generated by twisted, or subset of my modules). What s

Re: [Twisted-Python] logging in twisted based projects

2013-03-14 Thread Lucas Taylor
On Mar 14, 2013, at 3:05 AM, Sergey Gerasimov wrote: > I’m implementing some project based on twisted. > > I would like to use some logging mechanism in my modules and see both twisted > generated log records and log records from my modules > and be able to filter log records by level and sou

Re: [Twisted-Python] logging in twisted based projects

2013-03-14 Thread Stephen Thorne
It's also perfectly fine to use python's logging module from within twisted, you don't have to use twisted.log, but you should be aware this will make your log files hard to correlate (between twistd.log and your own logfiles). On Thu, Mar 14, 2013 at 10:05 AM, Sergey Gerasimov wrote: > I’m imp

Re: [Twisted-Python] eated traceback when decorate method already decorated by inlineCallbacks

2013-03-14 Thread exarkun
On 09:40 am, ser...@gmail.com wrote: >Hello to all! > >Why traceback doesn't include call of g() here? Tracebacks are tricky, and inlineCallbacks doesn't make them look exactly like they would look if you didn't have Deferreds. twisted.python.failure is a little bit better at handling tracebacks

Re: [Twisted-Python] logging in twisted based projects

2013-03-14 Thread exarkun
On 01:52 pm, step...@thorne.id.au wrote: >It's also perfectly fine to use python's logging module from within >twisted, you don't have to use twisted.log, but you should be aware >this >will make your log files hard to correlate (between twistd.log and your >own >logfiles). For posterity: within

[Twisted-Python] Twisted BoF session

2013-03-14 Thread Laurens Van Houtven
I'm organizing a Twisted BoF session/open space. I've tried to get a combination of a) nice room b) no collisions with anyone's talks. I have it down for 7-9 in Great America Meeting Room 2 (that's next to the room where Itamar's tutorial was). I'm in charge of open spaces, so I can probably cate

Re: [Twisted-Python] Twisted BoF session

2013-03-14 Thread Laurens Van Houtven
By the way, this is *Friday* On Thursday, March 14, 2013, Laurens Van Houtven <_...@lvh.cc> wrote: > I'm organizing a Twisted BoF session/open space. > > I've tried to get a combination of a) nice room b) no collisions with > anyone's talks. I have it down for 7-9 in Great America Meeting Room 2