mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 23:57:42 +01:00
fix(jobservice):add job id in log getting error (#12513)
Signed-off-by: Steven Zou <szou@vmware.com>
This commit is contained in:
parent
a74efdac4d
commit
d9ca9bbc69
@ -135,7 +135,7 @@ func (bc *basicController) GetJobLogData(jobID string) ([]byte, error) {
|
|||||||
|
|
||||||
logData, err := logger.Retrieve(jobID)
|
logData, err := logger.Retrieve(jobID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, errors.Wrapf(err, "error for getting log of job %s", jobID)
|
||||||
}
|
}
|
||||||
|
|
||||||
return logData, nil
|
return logData, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user