You can TRY/CATCH any errors and then send the details via email or save it to a log file.
M!ke -----Original Message----- From: Richard Dillman [mailto:[EMAIL PROTECTED] Sent: Sunday, August 26, 2007 9:38 AM To: CF-Talk Subject: Re: Directory Watcher Doing the folowing i get the logto MydirWatcher, but nothing in the DB. <cfcomponent> <cffunction access="public" name="onChange" output="no" returntype="query"> <cfargument name="CFEvent" type="struct" required="yes"> <cfset var qryInsertTest = ""> <cfset data=CFEvent.data> <cftry> <cfquery name="qryInsertTest" datasource="#DSN#"> INSERT INTO [eventlist] ([Updated]) VALUES (<cfqueryparam cfsqltype="CF_SQL_TIMESTAMP" value="#dateformat(data.lastmodified)#" null="No">) </cfquery> <cfcatch type="database"> <cfset success = 'false' /> </cfcatch> </cftry> <cflog file="MydirWatcher" application="No" text=" ACTION: #data.type#;FILE: #data.filename#; TIME: #timeFormat(data.lastmodified)#"> </cffunction> </cfcomponent> But if this is going to run int he background as a CFC then how would i ever see the error? This is my first foray into Directory Watcher... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287141 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

