The addTraceSatement method only calls cfdump when the message is a complex
value, and the only place I know where that is done is at line 167 of
http://svn.model-glue.com/trunk/ModelGlue/gesture/eventrequest/EventContext.cfc
:
<!--- Trace the exception. Maybe people will like this ;) --->
<cfset addTraceStatement("Exception", cfcatch) />
I think I can speak for most of us when I respond to the above comment with
NO WE DO NOT!!!!
I propose that the abovementioned code be removed from the framework to
eliminate the unnecessary issues it causes during exception processing. I do
not find such a trace helpful even in debug mode. If someone really needs to
log the entire cfcatch structure (which tends to be quite huge) they should
do it from a controller in the exception event.
Cheers,
Dennis
On Mon, Nov 30, 2009 at 2:54 PM, Raymond Camden <[email protected]> wrote:
> Twice now in a CF9/ORM/MG3 application I've noticed something odd.
> I'll get a timeout error and the tag involved will be cfdump,
> specifically:
>
> EventContext.cfc:
>
> <cffunction name="addTraceStatement" access="public" returnType="Void"
> output="false" hint="I add a message to the trace log.">
> <cfargument name="type" type="string" />
> <cfargument name="message" type="any" />
> <cfargument name="tag" type="string" default="" />
> <cfargument name="traceType" type="string" default="OK" />
>
> <cfset arguments.time = getTickCount() />
>
> <cfif not isSimpleValue(arguments.message)>
> <cfsavecontent variable="arguments.message"><cfdump
> var="#arguments.message#" /></cfsavecontent>
> </cfif>
>
> <cfset variables._logWriter.write(this, arguments) />
> </cffunction>
>
> If I comment out the CFIF and let the error 'go through', it seems
> simple enough. In my case it has been a simple matter of setting an
> integer based column to a string. I don't know why the server would
> time out just dumping it, but it does. After a few reloads the server
> will crash.
>
> But anyway - my real question is - should addTraceStatement be running
> when debugging is turned off? I added a cflog and see that it seems to
> run quite often. Even if it runs quickly, that cfdump is a bit of a
> waste if it doesn't actually end up getting used anywhere.
>
>
> --
> ===========================================================================
> Raymond Camden, ColdFusion Jedi Master
>
> Email : [email protected]
> Blog : www.coldfusionjedi.com
> AOL IM : cfjedimaster
>
> Keep up to date with the community: http://www.coldfusionbloggers.org
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en