This is an automated email from the ASF dual-hosted git repository.

dineshkumar pushed a commit to branch ranger-2.6
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.6 by this push:
     new 71f272dc0 RANGER-4523: Suggestion on improving logs from 
AtlasNotificationMapper
71f272dc0 is described below

commit 71f272dc0427f0ed77f1c392ca76694f92d0fba2
Author: Rakesh Gupta <[email protected]>
AuthorDate: Thu Oct 24 16:20:41 2024 +0530

    RANGER-4523: Suggestion on improving logs from AtlasNotificationMapper
    
    Signed-off-by: Dineshkumar Yadav <[email protected]>
---
 .../apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/tagsync/src/main/java/org/apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java
 
b/tagsync/src/main/java/org/apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java
index 5d5ab8a7d..542c0de5c 100644
--- 
a/tagsync/src/main/java/org/apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java
+++ 
b/tagsync/src/main/java/org/apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java
@@ -69,7 +69,9 @@ public class AtlasNotificationMapper {
                 if (!entityNotification.getIsEntityTypeHandled()) {
                     LOG.warn("Tag-sync is not enabled to handle notifications 
for Entity-type:[" + entityNotification.getEntityTypeName() + "]");
                 }
-                LOG.warn("Dropped process entity notification for Atlas-Entity 
[" + entityNotification.getRangerAtlasEntity() + "]");
+                if (LOG.isDebugEnabled()) {
+                    LOG.debug("Dropped process entity notification for 
Atlas-Entity [" + entityNotification.getRangerAtlasEntity() + "]");
+                }
             }
 
         }

Reply via email to