Skip to content

Commit

Permalink
make own-reference-dfa mismatch log an error
Browse files Browse the repository at this point in the history
  • Loading branch information
cormacrelf committed Dec 1, 2021
1 parent 5b6e346 commit 2fc5a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/proc/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,9 @@ fn refs_accepting_cite(
})
.collect();

if log_enabled!(log::Level::Warn) && !ret.contains(ref_id) {
if !ret.contains(ref_id) {
let dfa = db.ref_dfa(ref_id.clone()).unwrap();
warn!(
error!(
"{:?}: own reference {} did not match during pass {:?}:\n{}\n{:?}",
cite_id,
ref_id,
Expand Down

0 comments on commit 2fc5a83

Please sign in to comment.