debug! automatically adds the timestamp but not the line number that inserts the debug text. Is it a deliberate choice ?
@blitzerr Yep, if you want the reverse (line number but no timestamp) you could use the dbg macro, e.g. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c49c663aea9b9b6c586cedbefbbc6ea3
debug! comes from
log by the way (and is pretty standard across the ecosystem)
Thanks a lot @simulacrum. I was not trying to add new debug! but was trying to dump the ones that are already sprinkled all over rustc code. I was trying to understand why debug! was not generating line numbers but I guess the fact that it uses
log underneath, would explain why. Thanks a lot.