Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jun 27, 2024
1 parent 87d3722 commit 3183154
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
6 changes: 2 additions & 4 deletions custom/default-cfconfig/compareDefault.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,16 @@
systemOutput( "--------- out.log-----------", true );
systemOutput( fileRead( log ), true );
} else {
systemOutput( " no out.log [#log#]", true );
systemOutput( "--------- no out.log [#log#]", true );
}
errlog = expandPath( '{lucee-config}/logs/err.log' );
if ( fileExists( errlog ) ){
systemOutput( "", true );
systemOutput( "--------- err.log-----------", true );
systemOutput( fileRead( errlog ), true );
} else {
systemOutput( " no err.log [#errlog#]", true );
systemOutput( "--------- no err.log [#errlog#]", true );
}
throw "missing .CFConfig.json [#cfgPath#]";
}
Expand Down
20 changes: 19 additions & 1 deletion custom/default-cfconfig/saveDefault.cfm
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
<cfscript>
default = fileRead( expandPath('{lucee-config}.CFConfig.json') );
fileWrite( expandPath("./.CFConfig-default.json"), default )
fileWrite( expandPath("./.CFConfig-default.json"), default );
log = expandPath( '{lucee-config}/logs/out.log' );
if ( fileExists( log ) ){
systemOutput( "", true );
systemOutput( "--------- out.log-----------", true );
systemOutput( fileRead( log ), true );
} else {
systemOutput( "--------- no out.log [#log#]", true );
}
errlog = expandPath( '{lucee-config}/logs/err.log' );
if ( fileExists( errlog ) ){
systemOutput( "", true );
systemOutput( "--------- err.log-----------", true );
systemOutput( fileRead( errlog ), true );
} else {
systemOutput( "--------- no err.log [#errlog#]", true );
}
</cfscript>

0 comments on commit 3183154

Please sign in to comment.