2022-10-21 17:51:31 +00:00
|
|
|
package blobstor
|
|
|
|
|
|
|
|
import (
|
2024-10-21 07:22:54 +00:00
|
|
|
"context"
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
storagelog "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/internal/log"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/logger"
|
|
|
|
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
2022-10-21 17:51:31 +00:00
|
|
|
)
|
|
|
|
|
2023-10-31 11:56:55 +00:00
|
|
|
const (
|
|
|
|
deleteOp = "DELETE"
|
|
|
|
putOp = "PUT"
|
|
|
|
)
|
2022-10-21 17:51:31 +00:00
|
|
|
|
2024-10-21 07:22:54 +00:00
|
|
|
func logOp(ctx context.Context, l *logger.Logger, op string, addr oid.Address, typ string, sID []byte) {
|
|
|
|
storagelog.Write(ctx, l,
|
2022-10-21 17:51:31 +00:00
|
|
|
storagelog.AddressField(addr),
|
|
|
|
storagelog.OpField(op),
|
|
|
|
storagelog.StorageTypeField(typ),
|
|
|
|
storagelog.StorageIDField(sID),
|
|
|
|
)
|
|
|
|
}
|