FAQ
Thanks Bill! Mark’s response was ambiguous; I can clearly state that calling _flush had the desired effect.



Very timely, as well; we had an out of memory condition this morning, which we did not have the tail end of the log for. Now that I’d added this, we will next time it happens.



Thanks again,

--
Ken Beal
Senior Software Engineer, Build/Release

Cross Country Automotive Services
One Cabot Road
Medford, MA 02155
p: (781) 306-3605
m: (978) 423-8977
e: kbeal@crosscountry-auto.com

From: Mark Beihoffer
Sent: Wednesday, October 20, 2010 1:06 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Logging is not immediate



I tried that and it


Mark Beihoffer
Dragonfly Networks
mbeihoffer@gmail.com
mark@dragonfly-networks.com
(612)508-5128



On Mon, Oct 18, 2010 at 7:05 PM, Bill Moseley wrote:



On Mon, Oct 18, 2010 at 4:46 PM, Ken Beal wrote:

The issue is that when I call $c->log(), it doesn’t output anything until the “URL call� completes. This makes it difficult to watch a long-running process, because I don’t see anything until it’s done, and I don’t know if it’s hung up on something because I can’t see the log output.



maybe try this: $c->log->_flush;



Or try: warn "I'm stuck in a loop and the web user is wondering why I'm taking so long and will likely hit reload any second now!\n";





--
Bill Moseley
moseley@hank.org

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/




Confidentiality Note: This e-mail message and any attachments may contain
confidential or privileged information. If you are not the intended recipient,
please notify me immediately by replying to this message and destroy all
copies of this message and any attachments. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101020/d097ac46/attachment.htm

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 10 of 11 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedOct 18, '10 at 11:46p
activeOct 23, '10 at 5:18p
posts11
users7
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase