-q doesn't seem to make it any quieter.

I'm running (in /usr/sbin/pymsnt):
exec twistd -noqy "/etc/PyMSNt.tac" -r poll --pidfile
"/var/run/pymsnt/pymsnt.pid" -l "/var/log/pymsnt/pymsnt.log"

On 11/14/05, Daniel Henninger <[EMAIL PROTECTED]> wrote:
> What's -q do?  Does it shut the logs up?
>
> Daniel
>
> On Nov 14, 2005, at 9:32 AM, Gonzalo Barrio wrote:
>
> > Well, -l /dev/null it's not so well. There has to be a way of doing
> > this correctly.
> > BTW, thanks! I'm alredy doing that. ;-)
> >
> > Gonzalo
> >
> >
> > Daniel Henninger wrote:
> >
> >> Not that it's the most efficient thing in the world, but you
> >> could  always do: -l /dev/null
> >>
> >> Daniel
> >>
> >> On Nov 14, 2005, at 9:15 AM, Gonzalo Barrio wrote:
> >>
> >>> If you remove the -l in the twistd line, you got the debug info
> >>> in  a file named twisted.log. I didn't find anything in the
> >>> twistd  help.
> >>>
> >>> Thanks
> >>> Gonzalo Barrio Linares
> >>>
> >>>
> >>> James Bunton wrote:
> >>>
> >>>> If you don't want any debug info you can just remove the -l
> >>>> from  the twistd line.
> >>>>
> >>>> Thanks for the info on epoll
> >>>>
> >>>> ---
> >>>>
> >>>> James
> >>>>
> >>>>
> >>>>
> >>>> On 09/11/2005, at 1:13 AM, Gonzalo Barrio wrote:
> >>>>
> >>>>> This es the patch for twisted to make it work with epoll.
> >>>>> First  you have to install the epoll reactor and then:
> >>>>>
> >>>>> --- application/app.py.orig 2005-11-08 11:11:03.269111888 -0300
> >>>>> +++ application/app.py      2005-11-08 10:59:16.502556736 -0300
> >>>>> @@ -24,6 +24,7 @@
> >>>>>     'kqueue': 'twisted.internet.kqreactor',
> >>>>>     'iocp': 'twisted.internet.iocpreactor',
> >>>>>     'cfreactor': 'twisted.internet.cfreactor',
> >>>>> +    'epoll': 'twisted.internet.epollreactor',
> >>>>>     }
> >>>>>
> >>>>> def installReactor(reactor):
> >>>>>
> >>>>> This is what I was missing.
> >>>>>
> >>>>> Thanks, its nice with twistd but what if I like to not debug
> >>>>> any  info, so my app works better?
> >>>>>
> >>>>> James Bunton wrote:
> >>>>>
> >>>>>> You can use epoll by passing the -r option to twistd.
> >>>>>> Have a look at the docs, there's a short section on running
> >>>>>> the  transport with twistd, and it shows example options. The
> >>>>>> example  shows how to run with the poll reactor.
> >>>>>>
> >>>>>> ---
> >>>>>>
> >>>>>> James
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On 08/11/2005, at 1:18 AM, Gonzalo Barrio wrote:
> >>>>>>
> >>>>>>> James, what happened with the epoll reactor config section
> >>>>>>> inside the config-example.xml ? I can't find anything of
> >>>>>>> epoll  inside the sources.
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Gonzalo Barrio Linares.
> >>>>>>>
> >>>>>>>
> >>>>>>> James Bunton wrote:
> >>>>>>>
> >>>>>>>> Hi all.
> >>>>>>>>
> >>>>>>>> PyMSNt 0.10.2 has been released. This release just has a
> >>>>>>>> few  critical fixes, and is recommended for all users of 0.10.x
> >>>>>>>> http://msn-transport.jabberstudio.org
> >>>>>>>> Please remember to read through the documentation on that
> >>>>>>>> page. As always, feedback on the program and docs are welcome.
> >>>>>>>>
> >>>>>>>> Also of note is that the transport now uses SVN. The
> >>>>>>>> repository is available for anonymous public access at
> >>>>>>>> svn:// delx.cjb.net/pymsnt
> >>>>>>>>
> >>>>>>>> In svn://delx.cjb.net/pymsnt/branches/0_11_x is some
> >>>>>>>> preliminary file transfer code. It works for receiving
> >>>>>>>> files.  I'll be polishing this up so that it works with more
> >>>>>>>> clients,  and so that you can send as well.
> >>>>>>>>
> >>>>>>>> If you want to track the progress of file transfer, its
> >>>>>>>> probably a good idea to join py-transports. Also, you're
> >>>>>>>> best  off not checking out trunk :)
> >>>>>>>>
> >>>>>>>> Enjoy!
> >>>>>>>>
> >>>>>>>> ---
> >>>>>>>>
> >>>>>>>> James
> >>>>>>>>
> >>>>>>>> _______________________________________________
> >>>>>>>> py-transports mailing list
> >>>>>>>> py-transports@blathersource.org
> >>>>>>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> py-transports mailing list
> >>>>>>> py-transports@blathersource.org
> >>>>>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >>>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> py-transports mailing list
> >>>>>> py-transports@blathersource.org
> >>>>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >>>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> py-transports mailing list
> >>>>> py-transports@blathersource.org
> >>>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >>>>>
> >>>>
> >>>> _______________________________________________
> >>>> py-transports mailing list
> >>>> py-transports@blathersource.org
> >>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >>>>
> >>>
> >>>
> >>> _______________________________________________
> >>> py-transports mailing list
> >>> py-transports@blathersource.org
> >>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >>>
> >>>
> >>
> >> _______________________________________________
> >> py-transports mailing list
> >> py-transports@blathersource.org
> >> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >>
> >
> >
> > _______________________________________________
> > py-transports mailing list
> > py-transports@blathersource.org
> > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >
> >
>
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>


--
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Mon Nov 14 21:09:36 2005
From: [EMAIL PROTECTED] (Daniel Henninger)
Date: Mon Nov 14 21:09:41 2005
Subject: [py-transports] TwistedWords 0.3.0 support
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Ok, consider this fix a "hack" fix.  A real fix is to import the  
"correct" Element.  =/  Thing is, between 0.1.0 and 0.3.0 of words, a  
lot of the xish stuff seems to have made it's way in, instead of  
staying in Xish.  So now we have two versions of domish sitting  
around, one that's compatible with 0.1.0. and one that's compatible  
with 0.3.0.  Now... the below fix works fine, all things considered,  
because really, all that happens in the xmlstream code is that same  
thing ... if it's an Element, it's turned into a string with toXml 
().  So we're not hurting anything by doing it earlier, and that  
would provide backwards compatibility for now.  I believe I'm going  
to leave the hack in for now,  but it's looking like we're either  
going to need to embrace the new layout and say byebye to 0.1.0  
support, or deal with it in a variety of other ways.

Kind of a moving target sometimes, isn't it?  ;)

Basically, the low down is that the xmlstream code checks that what's  
passed to send "isInstance" of domish.Element.  Well, it's not if  
we're not talking about the same exact domish.py.  So it was passing  
our Element on through, which is indeed not a "sized" element.

Daniel

On Nov 14, 2005, at 11:00 AM, Daniel Henninger wrote:

> This is sort of for James's benefit, but I thought I would throw it  
> out to the list.  The change that occured that caused PyAIM to fail  
> with 0.3.0 ended up being that the send function no longer accepts  
> an Element.  It's expecting that you will hand it a string.  I've  
> been toying with overriding send anyway because I need to do so for  
> Jabberd2's component protocol (well, I think  I haven't worked that  
> functionality out yet).  So PyTransport need a:
> def send(self, obj):
>    if type(obj) == Element:
>       obj = obj.toXml()
>    component.Service.send(self,obj)
>
> That does the trick.  I'll be submitting the changes momentarily.   
> I'm going to pose this change on the twisted jabber list and see  
> what is said.
>
> Daniel
>
> -- 
> "The most addictive drug in the world is music."
>      - The Lost Boyz
>
>
>
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
>

Reply via email to