Skip to content

Commit

Permalink
Merge pull request #1649 from maykinmedia/remove-migration-logging-noise
Browse files Browse the repository at this point in the history
Reduce configurations.0075 migration logging noise
  • Loading branch information
swrichards authored Mar 3, 2025
2 parents b3855ed + b1da57f commit 30a4725
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ def copy_setting_from_openzaak_config(apps, _):
SiteConfiguration = apps.get_model("configurations", "SiteConfiguration")

try:
openzaak_config = OpenZaakConfig.objects.get() # should be a singleton
# Should be a singletos
openzaak_config = OpenZaakConfig.objects.get()
site_config = SiteConfiguration.objects.get()
except (ObjectDoesNotExist, MultipleObjectsReturned) as exc:
except ObjectDoesNotExist:
pass # Nothing to migrate
except MultipleObjectsReturned:
logger.warning(
"Unable to migrate `enable_eherkenning_for_eenmanszaak` flag from OpenZaakConfig, unable to fetch singletons",
exc_info=True,
"Unable to migrate `enable_eherkenning_for_eenmanszaak` flag from "
"OpenZaakConfig, found multiple OpenZaakConfig/SiteConfiguration objects"
)
else:
site_config.enable_eherkenning_for_eenmanszaak = (
Expand Down

0 comments on commit 30a4725

Please sign in to comment.