diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-10-03 17:50:52 +0100 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2019-10-04 16:15:48 +0100 |
commit | 739cba70306fa3e3ebe081171ee3fcb5d219ca9f (patch) | |
tree | 9a1ff5f3be6e14b7144648ff8af72f9aa70ee61c /src | |
parent | 0c8861edacfb90ed0f2b101fcb08a81b980dae9b (diff) | |
download | buildstream-739cba70306fa3e3ebe081171ee3fcb5d219ca9f.tar.gz |
cascache.py: Show path to log file when buildbox-casd doesn't exit normally
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/_cas/cascache.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py index 49761bf29..43375c635 100644 --- a/src/buildstream/_cas/cascache.py +++ b/src/buildstream/_cas/cascache.py @@ -977,7 +977,12 @@ class CASCache(): if messenger: messenger.message( - Message(MessageType.BUG, "Buildbox-casd died during the run. Exit code: {}".format(return_code)) + Message( + MessageType.BUG, + "Buildbox-casd died during the run. Exit code: {}, Logs: {}".format( + return_code, self.casd_logfile + ), + ) ) return @@ -1007,7 +1012,12 @@ class CASCache(): if return_code != 0 and messenger: messenger.message( - Message(MessageType.BUG, "Buildbox-casd didn't exit cleanly. Exit code: {}".format(return_code)) + Message( + MessageType.BUG, + "Buildbox-casd didn't exit cleanly. Exit code: {}, Logs: {}".format( + return_code, self.casd_logfile + ), + ) ) self._casd_process = None |