mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
client/pkg/fileutil: add missing logger to {Create,Touch}DirAll
Also populate it to every invocation. Signed-off-by: WangXiaoxiao <1141195807@qq.com> Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
This commit is contained in:
committed by
Marek Siarkowicz
parent
b2821631aa
commit
c91978077b
@@ -115,7 +115,7 @@ func Create(lg *zap.Logger, dirpath string, metadata []byte) (*WAL, error) {
|
||||
}
|
||||
defer os.RemoveAll(tmpdirpath)
|
||||
|
||||
if err := fileutil.CreateDirAll(tmpdirpath); err != nil {
|
||||
if err := fileutil.CreateDirAll(lg, tmpdirpath); err != nil {
|
||||
lg.Warn(
|
||||
"failed to create a temporary WAL directory",
|
||||
zap.String("tmp-dir-path", tmpdirpath),
|
||||
|
||||
Reference in New Issue
Block a user