From b10d4445602292a2f3c2f1750802a7c9434126d7 Mon Sep 17 00:00:00 2001 From: Kaloyan Raev Date: Mon, 28 Oct 2019 10:30:27 +0200 Subject: [PATCH] Rename --log-path back to --log for storagenode-updater (#3391) --- cmd/storagenode-updater/main.go | 6 +++--- installer/windows/Product.wxs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/storagenode-updater/main.go b/cmd/storagenode-updater/main.go index 47f6e5ba0..a9b7bf274 100644 --- a/cmd/storagenode-updater/main.go +++ b/cmd/storagenode-updater/main.go @@ -60,7 +60,7 @@ var ( BinaryLocation string `help:"the storage node executable binary location" default:"storagenode.exe"` ServiceName string `help:"storage node OS service name" default:"storagenode"` - LogPath string `help:"path to log file, if empty standard output will be used" default:""` + Log string `help:"path to log file, if empty standard output will be used" default:""` } confDir string @@ -81,8 +81,8 @@ func init() { } func cmdRun(cmd *cobra.Command, args []string) (err error) { - if runCfg.LogPath != "" { - logFile, err := os.OpenFile(runCfg.LogPath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) + if runCfg.Log != "" { + logFile, err := os.OpenFile(runCfg.Log, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) if err != nil { log.Fatalf("error opening log file: %s", err) } diff --git a/installer/windows/Product.wxs b/installer/windows/Product.wxs index 35c74291b..070ca7c38 100644 --- a/installer/windows/Product.wxs +++ b/installer/windows/Product.wxs @@ -57,7 +57,7 @@ Account="[SERVICEACCOUNT]" Password="[SERVICEPASSWORD]" ErrorControl="normal" - Arguments="run --config-dir "[INSTALLFOLDER]\" --identity-dir "[IDENTITYDIR]\" --binary-location "[INSTALLFOLDER]\storagenode.exe" --log-path "[INSTALLFOLDER]\storagenode-updater.log"" + Arguments="run --config-dir "[INSTALLFOLDER]\" --identity-dir "[IDENTITYDIR]\" --binary-location "[INSTALLFOLDER]\storagenode.exe" --log "[INSTALLFOLDER]\storagenode-updater.log"" />