update for latest micro logger changes
Some checks failed
codeql / analyze (go) (push) Failing after 36s
build / test (push) Failing after 4m55s
build / lint (push) Successful in 9m26s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-10-12 13:37:53 +03:00
parent a2d3f6e192
commit 37194f5dd5
3 changed files with 54 additions and 16 deletions

View File

@@ -146,7 +146,7 @@ func (c *vaultConfig) Load(ctx context.Context, opts ...config.LoadOption) error
options := config.NewLoadOptions(opts...)
if c.cli == nil {
c.opts.Logger.Errorf(c.opts.Context, "vault load err: %v", fmt.Errorf("vault client not created"))
c.opts.Logger.Error(c.opts.Context, "vault load error", fmt.Errorf("vault client not created"))
if !c.opts.AllowFail {
return fmt.Errorf("vault client not created")
}
@@ -192,7 +192,7 @@ func (c *vaultConfig) Load(ctx context.Context, opts ...config.LoadOption) error
}
if err != nil {
c.opts.Logger.Errorf(c.opts.Context, "vault load path %s err: %v", c.path, err)
c.opts.Logger.Error(c.opts.Context, fmt.Sprintf("vault load path %s error", c.path), err)
if !c.opts.AllowFail {
return err
}