Added logging messages to the make problems with the new bundler code
much easier to debug than the old bundling code.