mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
chore(caddystorage): adjust log levels
This commit is contained in:
1 parent
db55df64a2
commit
37f817aa58
2 files changed
+4
-4
No files matched your search
@@ -114,7 +114,7 @@ func (s *Storage) clusterStoreVersion(ctx context.Context, log *slog.Logger) (ma
|
|||||||
machines := make([]string, 0, len(resp.Machines))
|
machines := make([]string, 0, len(resp.Machines))
|
||||||
for _, m := range resp.Machines {
|
for _, m := range resp.Machines {
|
||||||
if m.Metadata.Error != "" {
|
if m.Metadata.Error != "" {
|
||||||
log.Debug("skipping machine when collecting store versions",
|
log.Warn("skipping machine when collecting store versions",
|
||||||
"id", m.Metadata.MachineId, "name", m.Metadata.MachineName, "error", m.Metadata.Error)
|
"id", m.Metadata.MachineId, "name", m.Metadata.MachineName, "error", m.Metadata.Error)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ func (s *Storage) Provision(ctx caddy.Context) error {
|
|||||||
s.locker = locker
|
s.locker = locker
|
||||||
s.locks = make(map[string]*distlock.Lease)
|
s.locks = make(map[string]*distlock.Lease)
|
||||||
|
|
||||||
s.log.Debug("module provisioned", "socket", s.Socket, "lock_ttl", time.Duration(s.LockTTL))
|
s.log.Info("module provisioned", "socket", s.Socket, "lock_ttl", time.Duration(s.LockTTL))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,12 +131,12 @@ func (s *Storage) Cleanup() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if remaining := s.lockOps.Load(); timedOut && remaining > 0 {
|
if remaining := s.lockOps.Load(); timedOut && remaining > 0 {
|
||||||
s.log.Debug("timed out waiting for active locks to be unlocked",
|
s.log.Warn("timed out waiting for active locks to be unlocked",
|
||||||
"locks", remaining, "timeout", lockCleanupTimeout)
|
"locks", remaining, "timeout", lockCleanupTimeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := s.client.Close(); err != nil {
|
if err := s.client.Close(); err != nil {
|
||||||
s.log.Debug("failed to clean up module", "duration", time.Since(started), "error", err)
|
s.log.Warn("failed to clean up module", "duration", time.Since(started), "error", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.log.Debug("module cleanup complete", "duration", time.Since(started))
|
s.log.Debug("module cleanup complete", "duration", time.Since(started))
|
||||||
|
|||||||
Reference in new issue
Block a user