Skip to content

Conversation

@nathanchance
Copy link
Member

There were two problems with the recently merged internal logging improvements:

  1. I assumed that print_yellow() was only called when warning but it is also used for informational prints.
  2. The regex did not work.

Simplify the regex by avoiding brackets and just using a simple ERROR: and WARNING: prefix to the message.

Introduce new logging functions: die() to print a message and exit with error code 1, warn() to print a warning, and info() to print information. Use these consistently throughout the scripts. Adjust certain messages so that they will be caught by the new problem matcher.

There were two problems with the recently merged internal logging
improvements:

1. I assumed that print_yellow() was only called when warning but it is
   also used for informational prints.
2. The regex did not work.

Simplify the regex by avoiding brackets and just using a simple ERROR:
and WARNING: prefix to the message.

Introduce new logging functions: die() to print a message and exit with
error code 1, warn() to print a warning, and info() to print
information. Use these consistently throughout the scripts. Adjust
certain messages so that they will be caught by the new problem matcher.

Signed-off-by: Nathan Chancellor <[email protected]>
@nathanchance nathanchance force-pushed the fix-internal-logging branch from e08e106 to 6db3475 Compare July 11, 2025 18:04
@nathanchance nathanchance merged commit 1172443 into ClangBuiltLinux:main Jul 11, 2025
7 checks passed
@nathanchance nathanchance deleted the fix-internal-logging branch July 11, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant