Skip to content

Commit

Permalink
Do not tail mongodb.log which is not present in the container (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
irajdeep authored Jun 24, 2022
1 parent c26bef7 commit 9ceeb68
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions controllers/construct/mongodbstatefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,6 @@ func mongodbContainer(version string, volumeMounts []corev1.VolumeMount, additio
# wait for config and keyfile to be created by the agent
while ! [ -f %s -a -f %s ]; do sleep 3 ; done ; sleep 2 ;
# with mongod configured to append logs, we need to provide them to stdout as
# mongod does not write to stdout and a log file
tail -F /var/log/mongodb-mms-automation/mongodb.log > /dev/stdout &
# start mongod with this configuration
exec mongod -f %s;
Expand Down
6 changes: 0 additions & 6 deletions pkg/automationconfig/automation_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ func (p *Process) SetReplicaSetName(replSetName string) *Process {
return p.SetArgs26Field("replication.replSetName", replSetName)
}

func (p *Process) SetSystemLog(systemLog SystemLog) *Process {
return p.SetArgs26Field("systemLog.path", systemLog.Path).
SetArgs26Field("systemLog.destination", systemLog.Destination).
SetArgs26Field("systemLog.logAppend", systemLog.LogAppend)
}

func (p *Process) SetWiredTigerCache(cacheSizeGb *float32) *Process {
if cacheSizeGb == nil {
return p
Expand Down

0 comments on commit 9ceeb68

Please sign in to comment.