logging tweaks (#2663)
#### Does this PR need a docs update or release note? - [x] ⛔ No #### Type of change - [ ] 🐛 Bugfix #### Issue(s) * #1970 #### Test Plan - [x] ⚡ Unit test
This commit is contained in:
parent
896a9cfeba
commit
ebf597b31d
@ -324,7 +324,9 @@ func (handler *LoggingMiddleware) Intercept(
|
|||||||
"response", string(respDump),
|
"response", string(respDump),
|
||||||
)
|
)
|
||||||
} else if resp.StatusCode/100 != 2 {
|
} else if resp.StatusCode/100 != 2 {
|
||||||
logger.Ctx(ctx).Infow("graph api error", "status", resp.Status, "method", req.Method, "url", req.URL)
|
logger.Ctx(ctx).
|
||||||
|
With("status", resp.Status, "method", req.Method, "url", req.URL).
|
||||||
|
Infof("graph api error: %s", resp.Status)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -138,7 +138,8 @@ func (op *RestoreOperation) Run(ctx context.Context) (restoreDetails *details.De
|
|||||||
ctx,
|
ctx,
|
||||||
"tenant_id", op.account.ID(), // TODO: pii
|
"tenant_id", op.account.ID(), // TODO: pii
|
||||||
"backup_id", op.BackupID,
|
"backup_id", op.BackupID,
|
||||||
"service", op.Selectors.Service)
|
"service", op.Selectors.Service,
|
||||||
|
"destination_container", op.Destination.ContainerName)
|
||||||
|
|
||||||
// -----
|
// -----
|
||||||
// Execution
|
// Execution
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user