We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0b73a3 commit 6688c0fCopy full SHA for 6688c0f
packages/lib/error.cfc
@@ -31,8 +31,14 @@
31
<cffunction name="logToRaygun" access="public" output="false" returntype="void" hint="Logs data to the couchdb">
32
<cfargument name="type" type="string" required="true" hint="Log type" />
33
<cfargument name="data" type="struct" requried="true" hint="A normalized error struct as produced by the core error library" />
34
+
35
+ <cftry>
36
+ <cfset var apiKey = application.fapi.getConfig("raygun", "apiKey", "") />
37
+ <cfcatch>
38
+ <cfset var apiKey = "" />
39
+ </cfcatch>
40
+ </cftry>
41
- <cfset var apiKey = application.fapi.getConfig("raygun", "apiKey", "") />
42
43
<cfif len(apiKey)>
44
<cfthread action="run" name="log-error-#createuuid()#" data="#arguments.data#" apiKey="#apiKey#" headers="#getHttpRequestData().headers#">
0 commit comments