forked from TrueCloudLab/frostfs-node
Alex Vanin
20de74a505
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
19 lines
535 B
Go
19 lines
535 B
Go
package blobstor
|
|
|
|
import (
|
|
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"
|
|
)
|
|
|
|
const deleteOp = "DELETE"
|
|
const putOp = "PUT"
|
|
|
|
func logOp(l *logger.Logger, op string, addr oid.Address, typ string, sID []byte) {
|
|
storagelog.Write(l,
|
|
storagelog.AddressField(addr),
|
|
storagelog.OpField(op),
|
|
storagelog.StorageTypeField(typ),
|
|
storagelog.StorageIDField(sID),
|
|
)
|
|
}
|