Skip to content

Commit

Permalink
Correct ByServers constant in NM script and remove default for logHom…
Browse files Browse the repository at this point in the history
…eLayout
  • Loading branch information
rjeberhard committed Aug 23, 2023
1 parent 7b68b58 commit 846f0be
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion documentation/domains/Domain.json
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@
"minimum": 1
},
"logHomeLayout": {
"default": "ByServers",
"description": "Control how log files under `logHome` are organized when logHome is set and `logHomeEnabled` is true. `Flat` specifies that all files are kept directly in the `logHome` root directory. `ByServers` specifies that domain log files and `introspector.out` are at the `logHome` root level, all other files are organized under the respective server name logs directory `logHome/servers/\u003cserver name\u003e/logs`. Defaults to `ByServers`.",
"type": "string",
"enum": [
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/crd/domain-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
weblogic.sha256: dfb1401d47ad44961c30bb2ab266cb8adcf12e8933bf510d48838ffb80766065
weblogic.sha256: a75abc92b2e2f3a344dc65eaed6e1e9aa5621ba540c0956db32056592f9ffb46
name: domains.weblogic.oracle
spec:
group: weblogic.oracle
Expand Down Expand Up @@ -926,7 +926,6 @@ spec:
minimum: 1
type: integer
logHomeLayout:
default: ByServers
description: Control how log files under `logHome` are organized when
logHome is set and `logHomeEnabled` is true. `Flat` specifies that
all files are kept directly in the `logHome` root directory. `ByServers`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public class DomainSpec extends BaseConfiguration {
+ "`ByServers` specifies that domain log files and `introspector.out` are at the `logHome` root level, "
+ "all other files are organized under the respective server name logs directory "
+ "`logHome/servers/<server name>/logs`. Defaults to `ByServers`.")
@Default(strDefault = "ByServers")
private LogHomeLayoutType logHomeLayout = LogHomeLayoutType.BY_SERVERS;


Expand Down
2 changes: 1 addition & 1 deletion operator/src/main/resources/scripts/startNodeManager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ if [ "${SERVER_NAME}" = "introspector" ]; then
else
# setup ".out" location for a WL server
serverLogHome="${LOG_HOME:-${DOMAIN_HOME}}"
if [ -z ${LOG_HOME_LAYOUT} ] || [ "BY_SERVERS" = ${LOG_HOME_LAYOUT} ] ; then
if [ -z ${LOG_HOME} ] || [ "ByServers" = ${LOG_HOME_LAYOUT} ] ; then
serverLogHome="${serverLogHome}/servers/${SERVER_NAME}/logs"
fi
export SERVER_OUT_FILE="${serverLogHome}/${SERVER_NAME}.out"
Expand Down

0 comments on commit 846f0be

Please sign in to comment.