diff --git a/controllers/controller_filer_statefulset.go b/controllers/controller_filer_statefulset.go index a6edd7f..5939589 100644 --- a/controllers/controller_filer_statefulset.go +++ b/controllers/controller_filer_statefulset.go @@ -13,7 +13,7 @@ import ( ) func buildFilerStartupScript(m *seaweedv1.Seaweed) string { - commands := []string{"weed", "filer"} + commands := []string{"weed", "-logtostderr=true", "filer"} commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.FilerHTTPPort)) commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-filer-peer.%s", m.Name, m.Namespace)) commands = append(commands, fmt.Sprintf("-master=%s", getMasterPeersString(m))) diff --git a/controllers/controller_master_statefulset.go b/controllers/controller_master_statefulset.go index 1e95f18..1781985 100644 --- a/controllers/controller_master_statefulset.go +++ b/controllers/controller_master_statefulset.go @@ -13,7 +13,7 @@ import ( ) func buildMasterStartupScript(m *seaweedv1.Seaweed) string { - command := []string{"weed", "master"} + command := []string{"weed", "-logtostderr=true", "master"} spec := m.Spec.Master if spec.VolumePreallocate != nil && *spec.VolumePreallocate { command = append(command, "-volumePreallocate") diff --git a/controllers/controller_volume_statefulset.go b/controllers/controller_volume_statefulset.go index 1f88a55..7e79abe 100644 --- a/controllers/controller_volume_statefulset.go +++ b/controllers/controller_volume_statefulset.go @@ -13,7 +13,7 @@ import ( ) func buildVolumeServerStartupScript(m *seaweedv1.Seaweed, dirs []string) string { - commands := []string{"weed", "volume"} + commands := []string{"weed", "-logtostderr=true", "volume"} commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.VolumeHTTPPort)) commands = append(commands, "-max=0") commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-volume-peer.%s", m.Name, m.Namespace))