diff --git a/api/censusdb/censusdb.go b/api/censusdb/censusdb.go index 639ac8f7a..685166092 100644 --- a/api/censusdb/censusdb.go +++ b/api/censusdb/censusdb.go @@ -361,7 +361,7 @@ func (c *CensusDB) ImportCensusDB(buffer io.Reader) error { if err != nil { return err } - log.Infow("importing census", "id", dump.CensusID.String(), "token", dump.Token.String(), "size", len(dump.Data)) + log.Infow("importing census", "id", dump.CensusID.String(), "size", len(dump.Data)) } return nil diff --git a/apiclient/client.go b/apiclient/client.go index b6bf7ded3..4a3d00372 100644 --- a/apiclient/client.go +++ b/apiclient/client.go @@ -64,7 +64,8 @@ func NewHTTPclient(addr *url.URL, bearerToken *uuid.UUID) (*HTTPclient, error) { return nil, err } if status != apirest.HTTPstatusOK { - return nil, fmt.Errorf("%s: %d (%s)", errCodeNot200, status, data) + log.Warnw("cannot get chain info from API server", "status", status, "data", data) + return c, nil } info := &api.ChainInfo{} if err := json.Unmarshal(data, info); err != nil { diff --git a/vochain/start.go b/vochain/start.go index 59ff5a352..8a2827bac 100644 --- a/vochain/start.go +++ b/vochain/start.go @@ -206,7 +206,6 @@ func newTendermint(app *BaseApplication, } pv.Save() if pv.Key.PrivKey.Bytes() != nil { - fmt.Printf("privkey: %s\n", hex.EncodeToString(pv.Key.PrivKey.Bytes())) signer := ethereum.SignKeys{} if err := signer.AddHexKey(hex.EncodeToString(pv.Key.PrivKey.Bytes())); err != nil { return nil, fmt.Errorf("cannot add private validator key: %w", err)