This is an automated email from the ASF dual-hosted git repository.
akshayrai09 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new a5de96c [TE] logging config change for demo mode (#5621)
a5de96c is described below
commit a5de96cc585359c2684591079709f05740e41c0a
Author: Vincent Chen <[email protected]>
AuthorDate: Thu Jun 25 16:20:58 2020 -0700
[TE] logging config change for demo mode (#5621)
---
thirdeye/run-frontend.sh | 2 +-
thirdeye/thirdeye-pinot/config/dashboard.yml | 4 ++++
thirdeye/thirdeye-pinot/config/detector.yml | 4 +---
.../thirdeye-pinot/src/main/resources/log4j2-test.xml | 13 -------------
thirdeye/thirdeye-pinot/src/main/resources/log4j2.xml | 16 ++++++++++++++++
5 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/thirdeye/run-frontend.sh b/thirdeye/run-frontend.sh
index 072a590..694476f 100755
--- a/thirdeye/run-frontend.sh
+++ b/thirdeye/run-frontend.sh
@@ -4,5 +4,5 @@ echo "Launching ThirdEye Dashboard in demo mode"
echo "*******************************************************"
cd thirdeye-pinot
-java -cp "./target/thirdeye-pinot-1.0.0-SNAPSHOT.jar"
org.apache.pinot.thirdeye.dashboard.ThirdEyeDashboardApplication "./config"
+java -Dlog4j.configurationFile=log4j2.xml -cp
"./target/thirdeye-pinot-1.0.0-SNAPSHOT.jar"
org.apache.pinot.thirdeye.dashboard.ThirdEyeDashboardApplication "./config"
cd ..
diff --git a/thirdeye/thirdeye-pinot/config/dashboard.yml
b/thirdeye/thirdeye-pinot/config/dashboard.yml
index b7b4b47..84e8967 100644
--- a/thirdeye/thirdeye-pinot/config/dashboard.yml
+++ b/thirdeye/thirdeye-pinot/config/dashboard.yml
@@ -23,6 +23,8 @@ alerterConfiguration:
smtpConfiguration:
smtpHost: localhost
smtpPort: 25
+logging:
+ type: external
server:
type: default
applicationConnectors:
@@ -31,6 +33,8 @@ server:
adminConnectors:
- type: http
port: 1427
+ requestLog:
+ type: external
whitelistDatasets: []
swagger:
resourcePackage:
"org.apache.pinot.thirdeye.dashboard.resources,org.apache.pinot.thirdeye.dashboard.resources.v2,org.apache.pinot.thirdeye.anomaly.onboard,org.apache.pinot.thirdeye.detection,org.apache.pinot.thirdeye.detection.yaml"
diff --git a/thirdeye/thirdeye-pinot/config/detector.yml
b/thirdeye/thirdeye-pinot/config/detector.yml
index b5c1951..dd1d9d9 100644
--- a/thirdeye/thirdeye-pinot/config/detector.yml
+++ b/thirdeye/thirdeye-pinot/config/detector.yml
@@ -1,7 +1,5 @@
logging:
- level: INFO
- loggers:
- org.hibernate.engine.internal: WARN
+ type: external
server:
type: default
rootPath: '/api/*'
diff --git a/thirdeye/thirdeye-pinot/src/main/resources/log4j2-test.xml
b/thirdeye/thirdeye-pinot/src/main/resources/log4j2-test.xml
deleted file mode 100644
index 1733507..0000000
--- a/thirdeye/thirdeye-pinot/src/main/resources/log4j2-test.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="INFO">
- <Appenders>
- <Console name="Console" target="SYSTEM_OUT">
- <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} -
%msg%n"/>
- </Console>
- </Appenders>
- <Loggers>
- <Root level="error">
- <AppenderRef ref="Console"/>
- </Root>
- </Loggers>
-</Configuration>
\ No newline at end of file
diff --git a/thirdeye/thirdeye-pinot/src/main/resources/log4j2.xml
b/thirdeye/thirdeye-pinot/src/main/resources/log4j2.xml
new file mode 100644
index 0000000..43f3853
--- /dev/null
+++ b/thirdeye/thirdeye-pinot/src/main/resources/log4j2.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="INFO">
+ <Appenders>
+ <Console name="Console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level
%logger{36} - %msg%n"/>
+ </Console>
+ </Appenders>
+ <Loggers>
+ <Root level="INFO">
+ <AppenderRef ref="Console"/>
+ </Root>
+ <Logger name="org.hibernate.engine.internal" level="WARN">
+ <AppenderRef ref="Console"/>
+ </Logger>
+ </Loggers>
+</Configuration>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]