Skip to content
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

remove a log message when OC compilation completes for running contract #1127

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

spoonincode
Copy link
Member

When I start from snapshot I can sometimes see this log once or twice. imo this ends up being deceptive because it looks like OC only tiered up 1 or 2 contracts (at least based on the current wording of the message). We already have another ilog a few lines down that logs when an interruption actually occurs. So, I don't really think we need this one.

@@ -115,7 +115,6 @@ struct eosvmoc_tier {
void async_compile_complete(boost::asio::io_context& ctx, const digest_type& code_id, fc::time_point queued_time) {
if (executing_code_hash.load() == code_id) { // is action still executing?
auto elapsed = fc::time_point::now() - queued_time;
ilog("EOS VM OC tier up for ${id} compile complete ${t}ms", ("id", code_id)("t", elapsed.count()/1000));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine to remove it. Could have made it a tlog. It was nice when testing as I could easily see how long it took for the queued up compiles to finish.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally agree it'd be useful to have some debug or trace messaging around OC compilation, its timing, etc -- #729. In this case though it's only logged when executing_code_hash.load() == code_id which tends to really limit its utility and consistency.

@spoonincode spoonincode merged commit 91e9dda into main Jan 27, 2025
36 checks passed
@spoonincode spoonincode deleted the removeanoclog branch January 27, 2025 20:32
@ericpassmore
Copy link
Contributor

Note:start
category: Logging
component: OC
summary: Remove redundant log message when OC compilation completes.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants