print warnings in debug mode
Merge pull request #986 from dimagi/warn

print warnings in debug mode