(Bug 4844) Pass in a $log sub

So that context may determine where this warning should be printed.
Merge pull request #226 from afuna/importer-log-bug4844

(Bug 4844) Pass in a $log sub