Skip to content

Commit 2f9b20e

Browse files
committed
Update default logging level for non-Operator loggers
1 parent 6402a76 commit 2f9b20e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/scripts/logstash.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.level=INFO
1+
.level=WARNING
2+
Operator.level=INFO
23
handlers=java.util.logging.ConsoleHandler,java.util.logging.FileHandler
34
java.util.logging.ConsoleHandler.level=INFO
45
java.util.logging.ConsoleHandler.formatter=oracle.kubernetes.operator.logging.LoggingFormatter

src/scripts/operator.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Copyright 2017, 2018, Oracle Corporation and/or its affiliates. All rights reserved.
33
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
44

5-
set -x
6-
75
export PATH=$PATH:/operator
86

97
echo "Launching Oracle WebLogic Server Kubernetes Operator..."
@@ -50,7 +48,7 @@ if [[ ! -z "$JAVA_LOGGING_LEVEL" ]]; then
5048
[ $JAVA_LOGGING_LEVEL != $FINEST ]; then
5149
echo "WARNING: Ignoring invalid JAVA_LOGGING_LEVEL: \"${JAVA_LOGGING_LEVEL}\". Valid values are $SEVERE, $WARNING, $INFO, $CONFIG, $FINE, $FINER and $FINEST."
5250
else
53-
sed -i -e "s|\(.*\.level=\).*|\1${JAVA_LOGGING_LEVEL}|g" $LOGGING_CONFIG
51+
sed -i -e "s|INFO|${JAVA_LOGGING_LEVEL}|g" $LOGGING_CONFIG
5452
fi
5553
fi
5654

0 commit comments

Comments
 (0)