Removed $log - you can't use it in config functions

Sorry for the last commit :)