Skip to content

Commit

Permalink
Update debug.cfm
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 12, 2024
1 parent 2da810a commit fa65055
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions custom/bad-cfconfig/debug.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@
}
}
systemoutput("", true);
systemoutput("--------- Installed Extensions -------", true);
q_ext = extensionList();
loop query="q_ext"{
systemoutput("#q_ext.name#, #q_ext.version#", true);
}
systemoutput("", true);
systemoutput("--------- Directories -------", true);
q_ext = extensionList();
Expand Down Expand Up @@ -72,17 +65,23 @@
}
}
systemoutput("", true);
systemoutput("--------- Installed Extensions -------", true);
q_ext = extensionList();
loop query="q_ext"{
systemoutput("#q_ext.name#, #q_ext.version#", true);
}
function _logger( string message="", boolean throw=false ){
systemOutput( arguments.message, true );
if ( !FileExists( server.system.environment.GITHUB_STEP_SUMMARY ) ){
fileWrite( server.system.environment.GITHUB_STEP_SUMMARY,
"#### #server.lucee.version# ", true );
fileWrite( server.system.environment.GITHUB_STEP_SUMMARY, "#### #server.lucee.version# ");
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, server.system.environment.toJson());
}
if ( arguments.throw ) {
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, "[!WARNING]" & chr(10) );
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, " #arguments.message##chr(10)#");
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, "> #chr(10)#[!WARNING]" & chr(10) );
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, "> #arguments.message##chr(10)#");
throw arguments.message;
} else {
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, " #arguments.message##chr(10)#");
Expand Down

0 comments on commit fa65055

Please sign in to comment.