skeleton: fix log WithField comment

This commit is contained in:
c9s 2022-06-22 23:32:31 +08:00
parent 2c5b553d21
commit 2c96d079b8
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -16,7 +16,8 @@ import (
// For example, grid strategy uses "grid" // For example, grid strategy uses "grid"
const ID = "skeleton" const ID = "skeleton"
// Attach the strategy field with our ID, so that the logs from this strategy will be tagged with our ID // log is a logrus.Entry that will be reused.
// This line attaches the strategy field to the logger with our ID, so that the logs from this strategy will be tagged with our ID
var log = logrus.WithField("strategy", ID) var log = logrus.WithField("strategy", ID)
var ten = fixedpoint.NewFromInt(10) var ten = fixedpoint.NewFromInt(10)