Urg. I guess I could use CFLOG...

-----Original Message-----
From: Bryan Love [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 1:07 PM
To: CF-Talk
Subject: RE: Logging warnings...


nope

when the server times out it does not process anything further for that
request.  So if you put code somewhere that sends mail whenever a timeout
occurrs it will never execute.

What you could do is record the query string and the request time for every
request.  Then if you enable slow page logging you can compare the timestamp
in the log to the timestamp in your query string records.  Not very
friendly, but you don't really have a choice.

+-----------------------------------------------+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
        - Thomas Paine, The American Crisis



-----Original Message-----
From: Ian Lurie [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 12:46 PM
To: CF-Talk
Subject: RE: Logging warnings...


Any other possible ways to do this? I just need to grab the $#@%! query
string when a template times out.

Sigh...

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 12:37 PM
To: CF-Talk
Subject: RE: Logging warnings...


> Can I use CFTRY to send me a message when there's a warning,
> as opposed to an error? I want to grab the URL string every
> time a template runs longer than 20 seconds...

To the best of my knowledge, no. You can only catch runtime exceptions with
CFTRY. You could conceivably use some combination of GetTickCount with
Application.cfm and OnRequestEnd.cfm to do this, or you could just enable
the "Log slow pages" option; that may give you what you need.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444




______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to