move log attribute to message

This commit is contained in:
bakito 2021-03-31 02:34:26 +02:00
parent 8db9c98644
commit 6fb2dd12a8
No known key found for this signature in database
GPG key ID: FAF93C1C384DD6B4

View file

@ -153,7 +153,7 @@ func (cl *client) toggleStatus(mode string) (bool, error) {
}
func (cl *client) toggleBool(mode string, enable bool) error {
cl.log.With("mode", mode, "enable", enable).Info("Toggle")
cl.log.With("enable", enable).Info(fmt.Sprintf("Toggle %s", mode))
var target string
if enable {
target = "enable"