ar: stringify CNI result debug message

This commit is contained in:
Nick Ethier
2021-04-05 12:35:34 -04:00
committed by GitHub
parent a935ede99a
commit 0cc2b295fd

View File

@@ -114,7 +114,7 @@ func (c *cniNetworkConfigurator) Setup(ctx context.Context, alloc *structs.Alloc
if c.logger.IsDebug() {
resultJSON, _ := json.Marshal(res)
c.logger.Debug("received result from CNI", "result", resultJSON)
c.logger.Debug("received result from CNI", "result", string(resultJSON))
}
netStatus := new(structs.AllocNetworkStatus)