Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[runsc] Print file name when cannot load state file
When `runsc` does not work, there are messages like ``` loading container: file does not exist ... loading sandbox: file does not exist ``` The problem here is, there is no indication of file path, making it harder to debug. I don't have access to environment where these errors appear, so I cannot repro. Better diagnostics would help. There's a comment in code suggesting that error code is important, so we cannot modify error IIUC https://github.com/google/gvisor/blob/9c490f813d37882f0374b7aebdad9961277623b8/runsc/container/state_file.go#L81 so my suggestion is to log the file name. FUTURE_COPYBARA_INTEGRATE_REVIEW=#11457 from stepancheg:state-file f0ac6d5 PiperOrigin-RevId: 725255102
- Loading branch information