Skip to content

Log property insert failures from bad model data at debug level #145

Open

Description

@disconsented

When the ML queue inserts a property that it got from the model, a failed insert logs at error level. Most of these failures come from bad data that the model returned, not from a fault in the program, so the logs are noisy.

Locations:

  • src/processing/ml_queue_actor.rs:170: error!(..., "Inserting new property") for any PropertiesError other than Conflict.
  • src/db/properties_repository.rs:134: error!(..., "error trying to insert/link property") for each failed statement.

The filter on the model output should already stop bad values. But remove_blocked in src/processing/llama_actor.rs removes only the values in PLACEHOLDERS. Values that are bad in other ways still get through.

To do:

  • Get the errors that these log lines still record, and find which model values cause them.
  • Filter those values in llama_actor.rs, next to remove_blocked, so they do not get to the insert.
  • For model input, log the failure at debug level. Keep error level for database failures that do not come from the data, or give them a separate PropertiesError variant so the caller can tell them apart. Do not make all insert errors debug, because that also hides real database faults.

Activity

  1. added
    enhancement
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions