234 attempt to fix js error Uncaught SyntaxError: Unexpected identifier 'hidden'
This commit is contained in:
+14
-20
@@ -1,23 +1,17 @@
|
||||
<cfcomponent implements="taffy.bonus.ILogAdapter">
|
||||
component implements="taffy.bonus.ILogAdapter" {
|
||||
|
||||
<cffunction name="init">
|
||||
<cfargument name="config" />
|
||||
<cfargument name="tracker" hint="unused" default="" />
|
||||
public function init(config, tracker="") hint="unused tracker" {
|
||||
variables.config = {};
|
||||
structAppend(variables.config, arguments.config, true);
|
||||
return this;
|
||||
}
|
||||
|
||||
<!--- copy settings into adapter instance data --->
|
||||
<cfset variables.config = {}>
|
||||
<cfset structAppend( variables.config, arguments.config, true ) />
|
||||
public function saveLog(exception) {
|
||||
var logdump = "";
|
||||
savecontent variable="logdump" {
|
||||
writeDump(var=arguments.exception, format="text");
|
||||
}
|
||||
writeLog(file=variables.config.logfile, text=logdump, type="Error");
|
||||
}
|
||||
|
||||
<cfreturn this />
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="saveLog">
|
||||
<cfargument name="exception" />
|
||||
<cfset var logdump = "">
|
||||
<!--- build dump --->
|
||||
<cfsavecontent variable="logdump"><cfdump var="#arguments.exception#" format="text"></cfsavecontent>
|
||||
<!--- write to log --->
|
||||
<cflog file="#variables.config.logfile#" text="#logdump#" type="Error">
|
||||
</cffunction>
|
||||
|
||||
</cfcomponent>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user