Go back to stderr rather than warnings module

Also add extra debug information

Change-Id: I3e4dfe15dbdac6e3e681c1e0766447c2106db238