You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Romain Gauthier (Jira)" <ji...@apache.org> on 2023/10/31 12:17:00 UTC

[jira] [Updated] (UNOMI-810) Logging for segment & scoring creation/update isn't precise enough

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

Romain Gauthier updated UNOMI-810:
----------------------------------
    Description: 
In the segmentServiceImpl, some logger do include the segment / scoring id, such as: 

{code:java}
logger.info("Start segment recalculation for segment: {} - {}", linkedSegment.getItemId(), linkedSegment.getMetadata().getName());
{code}

https://github.com/apache/unomi/blob/52f87fca3850c76cc47689d6bf60ac055eed9c89/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java#L981


But in other cases, the segment / scoring id is not logged, for instance for updateExistingProfilesForSegment and updateExistingProfilesForScoring

https://github.com/apache/unomi/blob/52f87fca3850c76cc47689d6bf60ac055eed9c89/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java#L1081

https://github.com/apache/unomi/blob/52f87fca3850c76cc47689d6bf60ac055eed9c89/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java#L1193C21-L1193C21 


> Logging for segment & scoring creation/update isn't precise enough
> ------------------------------------------------------------------
>
>                 Key: UNOMI-810
>                 URL: https://issues.apache.org/jira/browse/UNOMI-810
>             Project: Apache Unomi
>          Issue Type: Bug
>            Reporter: Romain Gauthier
>            Priority: Major
>
> In the segmentServiceImpl, some logger do include the segment / scoring id, such as: 
> {code:java}
> logger.info("Start segment recalculation for segment: {} - {}", linkedSegment.getItemId(), linkedSegment.getMetadata().getName());
> {code}
> https://github.com/apache/unomi/blob/52f87fca3850c76cc47689d6bf60ac055eed9c89/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java#L981
> But in other cases, the segment / scoring id is not logged, for instance for updateExistingProfilesForSegment and updateExistingProfilesForScoring
> https://github.com/apache/unomi/blob/52f87fca3850c76cc47689d6bf60ac055eed9c89/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java#L1081
> https://github.com/apache/unomi/blob/52f87fca3850c76cc47689d6bf60ac055eed9c89/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java#L1193C21-L1193C21 



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