mirror of
https://github.com/openziti/zrok.git
synced 2025-06-14 13:56:57 +02:00
debug logging for testing (#632)
This commit is contained in:
parent
33fdce7337
commit
58eb8bfcca
@ -146,12 +146,15 @@ func (a *Agent) CanCreateShare(acctId, envId int, reserved, uniqueName bool, trx
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if total+1 > a.cfg.Shares {
|
if total+1 > a.cfg.Shares {
|
||||||
|
logrus.Debugf("account '%d', environment '%d' over shares limit '%d'", acctId, envId, a.cfg.Shares)
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
if reserved && reserveds+1 > a.cfg.ReservedShares {
|
if reserved && reserveds+1 > a.cfg.ReservedShares {
|
||||||
|
logrus.Debugf("account '%v', environment '%d' over reserved shares limit '%d'", acctId, envId, a.cfg.ReservedShares)
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
if reserved && uniqueName && uniqueNames+1 > a.cfg.UniqueNames {
|
if reserved && uniqueName && uniqueNames+1 > a.cfg.UniqueNames {
|
||||||
|
logrus.Debugf("account '%v', environment '%d' over unique names limit '%d'", acctId, envId, a.cfg.UniqueNames)
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
logrus.Infof("total = %d", total)
|
logrus.Infof("total = %d", total)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user