Improved diagnostic logging

This change adds some additional diagnostic logging to the code that
waits for an application to start.  In addition, debug logging is
temporarily turned on.