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

[jira] [Assigned] (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 ]

Kevan Jahanshahi reassigned UNOMI-624:
--------------------------------------

    Assignee: Kevan Jahanshahi

> 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
>            Assignee: Kevan Jahanshahi
>            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)