send logs about trace only in debug mode (#2115)

This commit is contained in:
cyan 2025-03-26 02:34:39 +01:00 committed by GitHub
parent 36600dd82b
commit 72e011ead0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 10 additions and 9 deletions

View file

@ -11,7 +11,7 @@ jobs:
- name: Check for print() statements in dart code (use printV() instead)
if: github.event_name == 'pull_request'
run: |
GIT_GREP_OUT="$(git grep ' print(' | (grep .dart: || test $? = 1) | (grep -v print_verbose.dart || test $? = 1) || true)"
GIT_GREP_OUT="$(git grep ' print(' | (grep .dart: || test $? = 1) | (grep -v print_verbose.dart || test $? = 1) | (grep -v print_verbose_dummy.dart || test $? = 1) || true)"
[[ "x$GIT_GREP_OUT" == "x" ]] && exit 0
echo "$GIT_GREP_OUT"
echo "There are .dart files which use print() statements"