<cfscript> writeLog(""); </cfscript> <cflog text="">
Either of those will throw an error of:
you must define attribute text or attribute exception with the tag cflog
I would expect a blank log line, instead. Empty string should be valid, especially because the value can be dynamic, and if it is, it might be empty. Of course a blank log probably isn't too useful, but I'm not sure throwing a runtime error is the better behavior. The error thrown is slightly misleading, as well, since the argument is defined.
Here's the ticket, with Micha's response: https://bitbucket.org/lucee/lucee/issue/175/error-with-empty-string-as-text-parameter
Beyond this particular function, there might also be a matter of precedent involved.
Thoughts?
Thanks,
Jamie
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/e7d76dfa-dda1-4e8e-aee4-7a2d798419ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/519718f1-a5f8-4f7b-89d5-19aec7f35b14%40googlegroups.com.
On 23 Feb 2015, at 16:13, Adrian Lynch <adrian...@concreteplatform.com> wrote:I agree. Don't tell me I can't log an empty string, it might be meaningful to me.
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/67E16CC1-9249-462F-95C3-F3DCC41E22A2%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG%2BEEBx4STQoyeP1%2BYxHHPNfNkbkc9njyXiryPJMcy%3DNEJ3tKA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/C557B17F-801F-4D1A-B7A1-968A7C3D527A%40gmail.com.
On 23 Feb 2015, at 18:18, Michael Offner <mic...@lucee.org> wrote:
Sure
Am Montag, 23. Februar 2015 schrieb Mark Drew :
Add it as a JIRA ticket?
Mark Drew
<cmd.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG%2BEEBz%3D2DzCmEYKFc944NxCQTyp%2BExZuL%3D54CkXs%2BJEmE70kg%40mail.gmail.com.
I would expect a blank log line, instead. Empty string should be valid, especially because the value can be dynamic, and if it is, it might be empty. Of course a blank log probably isn't too useful, but I'm not sure throwing a runtime error is the better behavior. The error thrown is slightly misleading, as well, since the argument is defined.
Here's the ticket, with Micha's response: https://bitbucket.org/lucee/lucee/issue/175/error-with-empty-string-as-text-parameter