database: don't warn on UUID mismatch

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2024-05-28 18:07:18 -04:00
parent 7f89bd7d62
commit 4fe89d5571
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 3 additions and 4 deletions

View File

@ -211,11 +211,10 @@ class MoonrakerDatabase:
stored_iid = self.get_item("moonraker", "instance_id", None).result()
if stored_iid is not None:
if instance_id != stored_iid:
self.server.add_warning(
self.server.add_log_rollover_item(
"uuid_mismatch",
"Database: Stored Instance ID does not match current Instance "
"ID. Make sure that this database is not shared between multiple "
f"Instances of Moonraker.\n\nCurrent UUID: {instance_id}\n"
f"Stored UUID: {stored_iid}"
f"ID.\n\nCurrent UUID: {instance_id}\nStored UUID: {stored_iid}"
)
else:
self.insert_item("moonraker", "instance_id", instance_id)