From 07c366dd2c82e39fa16e65b23bae39dfc159f69b Mon Sep 17 00:00:00 2001 From: Jordan Clark Date: Mon, 3 Jun 2024 17:16:11 -0500 Subject: [PATCH] Add missing warn() to MiniLogBox.cfc amazonS3 calls log.warn() but minilogbox is missing this method. --- models/MiniLogBox.cfc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/models/MiniLogBox.cfc b/models/MiniLogBox.cfc index 7544f6a..b3a3fb8 100644 --- a/models/MiniLogBox.cfc +++ b/models/MiniLogBox.cfc @@ -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; }