application.ex: disable warnings_as_errors at runtime

see changed files for rationale
This commit is contained in:
rinpatch 2020-09-01 09:08:54 +03:00
parent 9d63b2c9db
commit dc3a418c27
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ defmodule Pleroma.Application do
# every time the application is restarted, so we disable module
# conflicts at runtime
Code.compiler_options(ignore_module_conflict: true)
# Disable warnings_as_errors at runtime, it breaks Phoenix live reload
# due to protocol consolidation warnings
Code.compiler_options(warnings_as_errors: false)
Pleroma.Telemetry.Logger.attach()
Config.Holder.save_default()
Pleroma.HTML.compile_scrubbers()