mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-24 12:08:19 +02:00
directory: add logging http client to help with debugging outbound http requests (#2385)
This commit is contained in:
parent
aa0e6872de
commit
ac8ae3ef5b
13 changed files with 110 additions and 20 deletions
|
@ -97,7 +97,7 @@ func (locker *Leaser) runOnce(ctx context.Context, resetBackoff func()) error {
|
|||
resetBackoff()
|
||||
leaseID := res.Id
|
||||
|
||||
log.Info(ctx).
|
||||
log.Debug(ctx).
|
||||
Str("lease_name", locker.leaseName).
|
||||
Str("lease_id", leaseID).
|
||||
Msg("leaser: lease acquired")
|
||||
|
@ -136,7 +136,7 @@ func (locker *Leaser) withLease(ctx context.Context, leaseID string) error {
|
|||
Duration: durationpb.New(locker.ttl),
|
||||
})
|
||||
if status.Code(err) == codes.AlreadyExists {
|
||||
log.Info(ctx).
|
||||
log.Debug(ctx).
|
||||
Str("lease_name", locker.leaseName).
|
||||
Str("lease_id", leaseID).
|
||||
Msg("leaser: lease lost")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue