Minor changes to demonstrate how a logger can be used in conjunction to debug mode.
This commit is contained in:
parent
7662277025
commit
70dfb02169
2 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,7 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"time"
|
"time"
|
||||||
|
@ -89,6 +90,7 @@ func main() {
|
||||||
Factor: 2.0,
|
Factor: 2.0,
|
||||||
Jitter: 0.1,
|
Jitter: 0.1,
|
||||||
}),
|
}),
|
||||||
|
realis.SetLogger(log.New(os.Stdout, "realis-debug: ", log.Ldate)),
|
||||||
realis.Debug(),
|
realis.Debug(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1035,7 +1035,7 @@ func (r *realisClient) SetQuota(role string, cpu *float64, ramMb *int64, diskMb
|
||||||
func (r *realisClient) GetQuota(role string) (*aurora.Response, error) {
|
func (r *realisClient) GetQuota(role string) (*aurora.Response, error) {
|
||||||
|
|
||||||
resp, retryErr := r.thriftCallWithRetries(func() (*aurora.Response, error) {
|
resp, retryErr := r.thriftCallWithRetries(func() (*aurora.Response, error) {
|
||||||
resp, retryErr :=r.adminClient.GetQuota(role)
|
resp, retryErr := r.adminClient.GetQuota(role)
|
||||||
|
|
||||||
if retryErr != nil {
|
if retryErr != nil {
|
||||||
return nil, errors.Wrap(retryErr, "Unable to get role quota")
|
return nil, errors.Wrap(retryErr, "Unable to get role quota")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue