You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2016/11/10 04:59:19 UTC
incubator-atlas git commit: ATLAS-1281: audit logs should written
only to audit.log and not application.log
Repository: incubator-atlas
Updated Branches:
refs/heads/master cd342783a -> ed3c32c12
ATLAS-1281: audit logs should written only to audit.log and not application.log
Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/ed3c32c1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/ed3c32c1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/ed3c32c1
Branch: refs/heads/master
Commit: ed3c32c125cc77c74d18d5053a38278f43e3d77b
Parents: cd34278
Author: Madhan Neethiraj <ma...@apache.org>
Authored: Wed Nov 9 19:32:04 2016 -0800
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Wed Nov 9 20:21:49 2016 -0800
----------------------------------------------------------------------
typesystem/src/main/resources/atlas-log4j.xml | 2 +-
.../src/main/java/org/apache/atlas/web/filters/AuditFilter.java | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/ed3c32c1/typesystem/src/main/resources/atlas-log4j.xml
----------------------------------------------------------------------
diff --git a/typesystem/src/main/resources/atlas-log4j.xml b/typesystem/src/main/resources/atlas-log4j.xml
index 5a48854..8312657 100755
--- a/typesystem/src/main/resources/atlas-log4j.xml
+++ b/typesystem/src/main/resources/atlas-log4j.xml
@@ -75,7 +75,7 @@
<appender-ref ref="console"/>
</logger>
- <logger name="AUDIT">
+ <logger name="AUDIT" additivity="false">
<level value="info"/>
<appender-ref ref="console"/>
</logger>
http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/ed3c32c1/webapp/src/main/java/org/apache/atlas/web/filters/AuditFilter.java
----------------------------------------------------------------------
diff --git a/webapp/src/main/java/org/apache/atlas/web/filters/AuditFilter.java b/webapp/src/main/java/org/apache/atlas/web/filters/AuditFilter.java
index 866277f..79b5be4 100755
--- a/webapp/src/main/java/org/apache/atlas/web/filters/AuditFilter.java
+++ b/webapp/src/main/java/org/apache/atlas/web/filters/AuditFilter.java
@@ -88,8 +88,6 @@ public class AuditFilter implements Filter {
final String whatURL = Servlets.getRequestURL(httpRequest);
final String whatAddrs = httpRequest.getLocalAddr();
- LOG.info("Audit: {}/{} performed request {} {} ({}) at time {}", who, fromAddress, whatRequest, whatURL,
- whatAddrs, whenISO9601);
audit(who, fromAddress, whatRequest, fromHost, whatURL, whatAddrs, whenISO9601);
}
@@ -109,4 +107,4 @@ public class AuditFilter implements Filter {
public void destroy() {
// do nothing
}
-}
\ No newline at end of file
+}