Skip to content

Commit

Permalink
Be more specific in logs that we only sync with the tuner service on …
Browse files Browse the repository at this point in the history
…at least one unit of work (controller request, background job etc.)
  • Loading branch information
methodmissing committed Feb 20, 2016
1 parent 733cfa3 commit 3433a81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tunemygc/syncer.rb
Expand Up @@ -48,7 +48,9 @@ def sync(snapshotter)
payload.clear
end
else
TuneMyGc.log "Nothing to sync, discarding #{snapshotter.size} snapshots"
TunemMyGc.log "The TuneMyGC service requires an instrumented application to do at least one unit of work (an ActionController request / response cycle, processing a background job through ActiveJob etc.) in order to suggest a configuration."
TuneMyGc.log "During the last instrumented run, the agent observed #{snapshotter.size} GC events of interest, but none of them happened within the context of a unit of work and is thus not representative of your application's GC profile."
TuneMyGc.log "Nothing to sync, discarding #{snapshotter.size} snapshots."
false
end
end
Expand Down

0 comments on commit 3433a81

Please sign in to comment.