[#1085] log: Move storage log message to constants package
All checks were successful
DCO action / DCO (pull_request) Successful in 2m11s
Vulncheck / Vulncheck (pull_request) Successful in 4m55s
Tests and linters / Staticcheck (pull_request) Successful in 5m16s
Build / Build Components (1.21) (pull_request) Successful in 5m19s
Tests and linters / Lint (pull_request) Successful in 6m14s
Build / Build Components (1.22) (pull_request) Successful in 9m30s
Tests and linters / Tests (1.21) (pull_request) Successful in 10m39s
Tests and linters / gopls check (pull_request) Successful in 10m21s
Tests and linters / Tests with -race (pull_request) Successful in 10m46s
Tests and linters / Tests (1.22) (pull_request) Successful in 11m31s
All checks were successful
DCO action / DCO (pull_request) Successful in 2m11s
Vulncheck / Vulncheck (pull_request) Successful in 4m55s
Tests and linters / Staticcheck (pull_request) Successful in 5m16s
Build / Build Components (1.21) (pull_request) Successful in 5m19s
Tests and linters / Lint (pull_request) Successful in 6m14s
Build / Build Components (1.22) (pull_request) Successful in 9m30s
Tests and linters / Tests (1.21) (pull_request) Successful in 10m39s
Tests and linters / gopls check (pull_request) Successful in 10m21s
Tests and linters / Tests with -race (pull_request) Successful in 10m46s
Tests and linters / Tests (1.22) (pull_request) Successful in 11m31s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
4b98b87af1
commit
245575bee9
2 changed files with 3 additions and 4 deletions
|
@ -201,6 +201,7 @@ const (
|
|||
SubscriberCantCastBlockEventValueToBlock = "can't cast block event value to block"
|
||||
SubscriberCantCastNotifyEventValueToTheNotaryRequestStruct = "can't cast notify event value to the notary request struct"
|
||||
SubscriberUnsupportedNotificationFromTheChain = "unsupported notification from the chain"
|
||||
StorageOperation = "local object storage operation"
|
||||
BlobovniczaCreatingDirectoryForBoltDB = "creating directory for BoltDB"
|
||||
BlobovniczaOpeningBoltDB = "opening BoltDB"
|
||||
BlobovniczaInitializing = "initializing..."
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
package storagelog
|
||||
|
||||
import (
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/logger"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// headMsg is a distinctive part of all messages.
|
||||
const headMsg = "local object storage operation"
|
||||
|
||||
// Write writes message about storage engine's operation to logger.
|
||||
func Write(logger *logger.Logger, fields ...zap.Field) {
|
||||
logger.Debug(headMsg, fields...)
|
||||
logger.Debug(logs.StorageOperation, fields...)
|
||||
}
|
||||
|
||||
// AddressField returns logger's field for object address.
|
||||
|
|
Loading…
Reference in a new issue