I've used bugloghq on cf9 before and it works great. I just tried to set it up on a cf8 enterprise server and I get errors all over the place, looking like things were written for cf9 syntax. Should this work on cf8 as advertised?Thanks
--
---
You received this message because you are subscribed to the Google Groups "BugLogHQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bugloghq+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
For more options, visit https://groups.google.com/d/optout.
Invalid CFML construct found on line 175 at column 39. | |
ColdFusion was looking at the following text: { The CFML compiler was processing:
| |
<cffunction name="notifyService" access="public" returntype="void" hint="Use this method to tell the bugTrackerService that an error has ocurred" output="false">
<cfargument name="message" type="string" required="true">
<cfargument name="exception" type="any" required="false" default="#structNew()#">
<cfargument name="extraInfo" type="any" required="false" default="">
<cfargument name="severityCode" type="string" required="false" default="#variables.defaultSeverityCode#">
<cfargument name="maxDumpDepth" type="numeric" required="false" default="#variables.maxDumpDepth#">
<cfargument name="writeToCFLog" type="boolean" required="false" default="#variables.writeToCFLog#">
<cfargument name="AppName" type="string" required="false" default="#variables.appName#">
<cfset var shortMessage = "">
<cfset var longMessage = "">
<cfset var tmpCFID = "">
<cfset var tmpCFTOKEN = "">
<!--- make sure we have required members --->
<cfparam name="arguments.exception.message" default="">
<cfparam name="arguments.exception.detail" default="">
<!--- compose short and full messages --->
<cfset shortMessage = composeShortMessage(arguments.message, arguments.exception, arguments.extraInfo)>
<cfset longMessage = composeFullMessage(arguments.message, arguments.exception, arguments.extraInfo, arguments.maxDumpDepth, arguments.AppName)>
<!--- check if there are valid CFID/CFTOKEN values available --->
<cfif isDefined("cfid")>
<cfset tmpCFID = cfid>
</cfif>
<cfif isDefined("cftoken")>
<cfset tmpCFTOKEN = cftoken>
</cfif>
<!--- submit error --->
<cftry>
<cfif variables.useListener>
<cfif variables.protocol eq "REST">
<!--- send bug via a REST interface --->
<cfhttp method="post" throwonerror="false" timeout="0" url="#variables.bugLogListener#">
<cfhttpparam type="formfield" name="dateTime" value="#Now()#">
<cfhttpparam type="formfield" name="message" value="#arguments.message#">
<cfhttpparam type="formfield" name="applicationCode" value="#variables.appName#">
<cfhttpparam type="formfield" name="severityCode" value="#arguments.severityCode#">
<cfhttpparam type="formfield" name="hostName" value="#variables.hostName#">
<cfhttpparam type="formfield" name="exceptionMessage" value="#arguments.exception.message#">
<cfhttpparam type="formfield" name="exceptionDetails" value="#arguments.exception.detail#">
<cfhttpparam type="formfield" name="CFID" value="#tmpCFID#">
<cfhttpparam type="formfield" name="CFTOKEN" value="#tmpCFTOKEN#">
<cfhttpparam type="formfield" name="userAgent" value="#cgi.HTTP_USER_AGENT#">
<cfhttpparam type="formfield" name="templatePath" value="#GetBaseTemplatePath()#">
<cfhttpparam type="formfield" name="HTMLReport" value="#longMessage#">
<cfhttpparam type="formfield" name="APIKey" value="#variables.apikey#">
</cfhttp>
<cfif NOT find( 200 , cfhttp.StatusCode )>
<cfthrow message="Invalid HTTP Response Received" detail="#cfhttp.FileContent#" />
</cfif>
<cfelse>
<!--- send bug via a webservice (SOAP) --->
<cfset variables.oBugLogListener.logEntry(Now(),
sanitizeForXML(arguments.message),
variables.appName,
arguments.severityCode,
variables.hostName,
sanitizeForXML(arguments.exception.message),
sanitizeForXML(arguments.exception.detail),
tmpCFID,
tmpCFTOKEN,
cgi.HTTP_USER_AGENT,
GetBaseTemplatePath(),
sanitizeForXML(longMessage),
variables.apikey )>
</cfif>
<cfelse>
<cfif variables.bugEmailRecipients neq "">
<cfset sendEmail(arguments.message, longMessage, "BugLog listener not available")>
</cfif>
</cfif>
<cfcatch type="any">
<!--- an error ocurred, if there is an email address stored, then send details to that email, otherwise rethrow --->
<cfif variables.bugEmailRecipients neq "">
<cfset sendEmail(arguments.message, longMessage, cfcatch.message & cfcatch.detail)>
<cfelse>
<cfrethrow>
</cfif>
</cfcatch>
</cftry>
<!--- add entry to coldfusion log --->
<cflog type="error"
text="#shortMessage#"
file="#variables.appName#_BugTrackingErrors">
</cffunction>