[jira] Created: (OFBIZ-3646) Change log level on never-cache related messages from "warn" to "info"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-3646) Change log level on never-cache related messages from "warn" to "info"

Nicolas Malin (Jira)
Change log level on never-cache related messages from "warn" to "info"
----------------------------------------------------------------------

                 Key: OFBIZ-3646
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3646
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Bob Morley
             Fix For: SVN trunk


When you use caching there are a number of warning messages that are produced indicating that various entity instances will not be cached (because the entity is configured not to cache).  Changing these from "warn" to "info" which better reflects what they are and reduces warn threshold log noise.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-3646) Change log level on never-cache related messages from "warn" to "info"

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Morley updated OFBIZ-3646:
------------------------------

    Attachment: OFBIZ-3646_ChangeLogLevelForNeverCacheMessages.patch

Three minor changes and removal of one not used import.

> Change log level on never-cache related messages from "warn" to "info"
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-3646
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3646
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Bob Morley
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3646_ChangeLogLevelForNeverCacheMessages.patch
>
>
> When you use caching there are a number of warning messages that are produced indicating that various entity instances will not be cached (because the entity is configured not to cache).  Changing these from "warn" to "info" which better reflects what they are and reduces warn threshold log noise.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3646) Change log level on never-cache related messages from "warn" to "info"

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858097#action_12858097 ]

Scott Gray commented on OFBIZ-3646:
-----------------------------------

I'm not sure, I'm guessing it's logged as a warning because you may be expecting the value to cache but it isn't going to happen.  Warnings are about logging potential mistakes that don't actually result in an error.  Why not just not use the cache when you shouldn't be?

> Change log level on never-cache related messages from "warn" to "info"
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-3646
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3646
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Bob Morley
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3646_ChangeLogLevelForNeverCacheMessages.patch
>
>
> When you use caching there are a number of warning messages that are produced indicating that various entity instances will not be cached (because the entity is configured not to cache).  Changing these from "warn" to "info" which better reflects what they are and reduces warn threshold log noise.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3646) Change log level on never-cache related messages from "warn" to "info"

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858562#action_12858562 ]

Bob Morley commented on OFBIZ-3646:
-----------------------------------

I guess I would think that there is no potential mistake here.  As the application developer you likely always want to fetch from cache (if you are not updating); if that item will never be from the cache (because it is non-cachable) or if the entity just happens not to be in the cache for that request, there isn't much difference.  I would not expect the application developer to look at each entity and set the "cache query" appropriately, only to have the underlying entity change and be forced to find all of those queries and change them to be cachable.

> Change log level on never-cache related messages from "warn" to "info"
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-3646
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3646
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Bob Morley
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3646_ChangeLogLevelForNeverCacheMessages.patch
>
>
> When you use caching there are a number of warning messages that are produced indicating that various entity instances will not be cached (because the entity is configured not to cache).  Changing these from "warn" to "info" which better reflects what they are and reduces warn threshold log noise.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.