logger edited
updated logging in django