Logging from django.db.backends is VERY verbose, send to null

Fix logical error in confition
Fixes: #PRD-1620

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>