You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "David Griffon (Jira)" <ji...@apache.org> on 2022/07/07 08:47:00 UTC

[jira] [Updated] (UNOMI-624) avoid multiple logs about setPropertyValue: 'now'

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

David Griffon updated UNOMI-624:
--------------------------------
    Summary: avoid multiple logs about setPropertyValue: 'now'   (was: avoid multiple logs about setProperty: 'now' )

> avoid multiple logs about setPropertyValue: 'now' 
> --------------------------------------------------
>
>                 Key: UNOMI-624
>                 URL: https://issues.apache.org/jira/browse/UNOMI-624
>             Project: Apache Unomi
>          Issue Type: Improvement
>            Reporter: David Griffon
>            Priority: Major
>             Fix For: 2.0.0
>
>
> this log
> {code}
> Jul  7 07:59:04 jcustomer docker[10244]: 2022-07-07T07:59:04,723 | WARN  | qtp1412973081-331 | SetPropertyAction                | 226 - org.apache.unomi.plugins-base - 2.0.0.SNAPSHOT |  SetPropertyAction with setPropertyValue: 'now' is deprecated, please use 'setPropertyValueCurrentEventTimestamp' or 'setPropertyValueCurrentDate' instead of 'setPropertyValue' 
> {code}
> is happening a lot as soon as a goal as been set as it creates a rule with such action.
> as we don't migrate such rules. we need to warn the user only once. 
> We need also to update the code to use not deprecated stuff 
> https://github.com/apache/unomi/blob/130c29d391faac5b7d4bf49f07e9389b7a2c7eba/services/src/main/java/org/apache/unomi/services/impl/goals/GoalsServiceImpl.java#L173



--
This message was sent by Atlassian Jira
(v8.20.10#820010)