Skip to content

Adjust log severity based on component status #1145

@ela-kotulska-frequenz

Description

@ela-kotulska-frequenz

What happened?

Logs below should not be WARNING if component is in not working state.

  • WARNING No relevant samples found for: component_metric_request...
  • WARNING frequenz.sdk.microgrid._power_distributing._component_status._pv_inverter_status_tracker:163: No PV inverter 609 data received for 0:00:10. Setting status to NOT_WORKING.
  • _pv_inverter_manager:211: Timeout while setting power to PV inverter 624
  • WARNING frequenz.sdk.microgrid._power_distributing._component_status._battery_status_tracker:396: Inverter 248 has invalid state: OFF: Should be maximum INFO

What did you expect instead?

Would it be possible to check component state and if it is not working, then print it as DEBUG instead of WARNING?

Affected version(s)

No response

Affected part(s)

Data pipeline (part:data-pipeline)

Extra information

No response

Metadata

Metadata

Assignees

Labels

part:data-pipelineAffects the data pipelinepriority:❓We need to figure out how soon this should be addressedtype:bugSomething isn't working

Projects

Status

To do

Relationships

None yet

Development

No branches or pull requests

Issue actions