-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cache): Stuff error messages into Malformed
and CacheSpecificError
cache files
#510
Conversation
log::warn!("Error while parsing cficache: {}", LogError(&err)); | ||
log::warn!( | ||
"Error while parsing cficache: {} ({})", | ||
LogError(&err), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn’t LogError
already contain the details
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately not: LogError
in this case just spits out an in-depth string for CfiCacheError::ObjectParsing(ObjectError::Malformed)
.
details
may contain error info that may have been propagated from the download cache if the download cache itself has a malformed entry for the same file or it could contain error info during a previous attempt to compute the cfi cache entry.
e240e55
to
626a5cd
Compare
Malformed
and CacheSpecificError
cache files
8288203
to
7722e79
Compare
this has zero impact on how malformed entries behave. they only include additional info that can be used for debugging, if needed. the only functional change is that the contents of malformed cache entries may be a little longer, as they'll include an error message.
this has zero impact on the existing behaviour of cache entries. cache-specific error cache entries will have a little bit of extra debugging info if needed during development.
7722e79
to
378b8ba
Compare
Welcome to part 2 of my PR series on making symbolicator's cache statuses gooder. Before reviewing or merging this PR, you may be interested in taking a look at part 1 first for some context: #509
If you've already seen #509 or you're brave enough to be look at these changes as-is because you reviewed an eerily similar set of changes in a previous PR, then let's continue.
This belongs to the following chain of PRs:
CacheSpecificError
#509)CacheStatus::CacheSpecificError
entries have different timeout behaviours based on the type of cache they belong to #516)Malformed
andCacheSpecificError
cache files #510) 👈 you are hereThis PR does one thing: it stuffs an error string returned by the
Display
impl of the error intoMalformed
andCacheSpecificError
entries, and adds all of the plumbing needed to write and read them from their respective cache files. This makes no functional changes to symbolicator.