From da4dfdc3eccd2536571e06e42b8e649906a02d91 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Mon, 26 Aug 2019 22:54:46 +0530 Subject: [PATCH] rcd: Added missing parameter for web-gui info logs. --- cmd/rcd/rcd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/rcd/rcd.go b/cmd/rcd/rcd.go index 775e0f7c8..d6f360b96 100644 --- a/cmd/rcd/rcd.go +++ b/cmd/rcd/rcd.go @@ -61,7 +61,7 @@ See the [rc documentation](/rc/) for more info on the rc flags. } if rcflags.Opt.HTTPOptions.BasicUser == "" { rcflags.Opt.HTTPOptions.BasicUser = "gui" - fs.Infof("Using default username: %s \n", rcflags.Opt.HTTPOptions.BasicUser) + fs.Infof(nil, "Using default username: %s \n", rcflags.Opt.HTTPOptions.BasicUser) } if rcflags.Opt.HTTPOptions.BasicPass == "" { randomPass, err := random.Password(128) @@ -69,7 +69,7 @@ See the [rc documentation](/rc/) for more info on the rc flags. log.Fatalf("Failed to make password: %v", err) } rcflags.Opt.HTTPOptions.BasicPass = randomPass - fs.Infof("No password specified. Using random password: %s \n", randomPass) + fs.Infof(nil, "No password specified. Using random password: %s \n", randomPass) } rcflags.Opt.Serve = true }