Skip to content

Instantly share code, notes, and snippets.

@hiltmon
Created Nov 14, 2012
Embed
What would you like to do?
Changes to slogger.rb
# Line 172 : WAS
eval(plugin['class']).new.do_log
# CHANGE TO
if plugin['updates_config'] == true
# Pass a reference to config for mutation
eval(plugin['class']).new.do_log(@config)
else
# Usual thing (so that we don't break other plugins)
eval(plugin['class']).new.do_log
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment