Skip to content

Commit

Permalink
Merge pull request #43 from jordanclark/development
Browse files Browse the repository at this point in the history
Add missing warn() to MiniLogBox.cfc
  • Loading branch information
jclausen authored Aug 21, 2024
2 parents 6d52a53 + 07c366d commit 7e3c9f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions models/MiniLogBox.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ component {
}
}

function warn( required string msg, data ){
arrayAppend( variables.logs, "Warn: " & arguments.msg );
if ( structKeyExists( arguments, "data" ) ) {
arrayAppend( variables.logs, arguments.data );
}
}

array function getLogs(){
return variables.logs;
}
Expand Down

0 comments on commit 7e3c9f2

Please sign in to comment.