Permalink
Browse files

Added tools to turn off debugging on the server when running apptacul…

…ar unit tests.
  • Loading branch information...
1 parent f9fc525 commit 38090398ae3c1e0234d3405cd6c341334d2649e2 @tpryan committed Aug 27, 2010
Showing with 20 additions and 0 deletions.
  1. +10 −0 utils/debugging/disableDebugging.cfm
  2. +10 −0 utils/debugging/enableDebugging.cfm
@@ -0,0 +1,10 @@
+<cfparam name="url.username" type="string" default="admin" />
+<cfparam name="url.password" type="string" default="admin" />
+
+<cfscript>
+ admin= New CFIDE.adminapi.administrator();
+ admin.login(url.password, url.username);
+ debugging = new CFIDE.adminapi.debugging();
+ debugging.setDebugProperty("enableDebug", false);
+ debugging.setDebugProperty("enableRobustExceptions", false);
+</cfscript>
@@ -0,0 +1,10 @@
+<cfparam name="url.username" type="string" default="admin" />
+<cfparam name="url.password" type="string" default="admin" />
+
+<cfscript>
+ admin= New CFIDE.adminapi.administrator();
+ admin.login(url.password, url.username);
+ debugging = new CFIDE.adminapi.debugging();
+ debugging.setDebugProperty("enableDebug", true);
+ debugging.setDebugProperty("enableRobustExceptions", true);
+</cfscript>

0 comments on commit 3809039

Please sign in to comment.