Skip to content

Commit

Permalink
chore(restore): add log message when restore fails (#8893)
Browse files Browse the repository at this point in the history
Closes: DGRAPHCORE-279
  • Loading branch information
mangalaman93 authored and dgraph-bot committed Jul 7, 2023
1 parent c74efbc commit d9b5b13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphql/admin/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"encoding/json"
"sync"

"github.com/golang/glog"
"github.com/pkg/errors"

"github.com/dgraph-io/dgraph/edgraph"
Expand Down Expand Up @@ -77,6 +78,7 @@ func resolveRestore(ctx context.Context, m schema.Mutation) (*resolve.Resolved,
wg := &sync.WaitGroup{}
err = worker.ProcessRestoreRequest(context.Background(), &req, wg)
if err != nil {
glog.Warningf("error processing restore request: %+v, err: %v", req, err)
return resolve.DataResult(
m,
map[string]interface{}{m.Name(): map[string]interface{}{
Expand Down

0 comments on commit d9b5b13

Please sign in to comment.