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 committed Jul 3, 2023
1 parent 973efa3 commit 3de01e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphql/admin/restore.go
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 3de01e4

Please sign in to comment.