Skip to content

get rid of outdated logging functions in util::common #2553

Closed

Description

@lkuper

The log_* functions in util::common predate the logging macros and are used in only a handful of places in the compiler. Some aren't being used at all. We should get rid of them and replace the few places they're being used with #debug and #error.

Activity

  1. catamorphism commented on Jun 8, 2012

    @catamorphism
    Contributor

    A debug_expr macro (for example) would be nice. It's a bit clunky to have to type out #debug("visiting %s", expr_to_str(e)); or whatever all the time. Then debug_expr could be governed by the same logging flags that affect whether #debug and #error macro calls print their results.

  2. lkuper commented on Jun 9, 2012

    @lkuper
    ContributorAuthor

    @catamorphism I'm not sure how widely used it would be, considering how little-used these were, but you could always open an issue for #debug_expr

  3. added a commit that references this issue on Sep 20, 2022
  4. added a commit that references this issue on Jun 4, 2024
  5. added a commit that references this issue on Sep 8, 2025
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions