some tweaks to django logging, refs #243