Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inc-proc-eng: Properly log recompute reason.
The 'reason' was computed only when logging at level DBG. However, if a node takes more than 'engine_compute_log_timeout_msec' to recompute, the log is generated at level INFO, resulting in: inc_proc_eng|INFO|node: northd, recompute ((null)) We now unconditionally compute 'reason'. In theory it's a bit inefficient but given that the number of I-P nodes is bound and usually relatively low, there's no real performance hit while the code remains readable. Fixes: e1041d9 ("inc-proc-eng: use VLOG_INFO_RL for recompute time over 500ms") Signed-off-by: Dumitru Ceara <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Mark Michelson <[email protected]>