Added some more debug logging at startup.

Added some more debug logging at startup.