mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Add logging to storage package
This commit is contained in:
@@ -2,6 +2,7 @@ package storage
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
"novamd/internal/logging"
|
||||
"os"
|
||||
)
|
||||
|
||||
@@ -17,6 +18,15 @@ type fileSystem interface {
|
||||
IsNotExist(err error) bool
|
||||
}
|
||||
|
||||
var logger logging.Logger
|
||||
|
||||
func getLogger() logging.Logger {
|
||||
if logger == nil {
|
||||
logger = logging.WithGroup("storage")
|
||||
}
|
||||
return logger
|
||||
}
|
||||
|
||||
// osFS implements the FileSystem interface using the real filesystem.
|
||||
type osFS struct{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user