mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
cleanup: move log functions to new internal/util/log package
Moving the log functions into its own internal/util/log package makes it possible to split out the humongous internal/util packages in further smaller pieces. This reduces the inter-dependencies between utility functions and components, preventing circular dependencies which are not allowed in Go. Updates: #852 Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
2036b587d7
commit
6d00b39886
@ -17,6 +17,8 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/ceph/ceph-csi/internal/util/log"
|
||||
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
)
|
||||
|
||||
@ -240,6 +242,6 @@ func (ol *OperationLock) release(op operation, volumeID string) {
|
||||
}
|
||||
}
|
||||
default:
|
||||
ErrorLogMsg("%v operation not supported", op)
|
||||
log.ErrorLogMsg("%v operation not supported", op)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user