Fix LANGUAGES setting. Import local_settings right after setting LOGFILE.