Make the log directory local, and add some debugging statements.