Skip to content

Commit

Permalink
WIP: disable RUBY_DEBUG_LOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Sep 25, 2023
1 parent 3b6bd33 commit 19339c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/compilers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,9 @@ jobs:

- run: make showflags

- run: make optflags=-O0
- run: make

- run: make test BTESTS=-j1
env:
RUBY_DEBUG_LOG: /tmp/log
RUBY_DEBUG_LOG_FILTER: pthread
RUBY_ON_BUG: 'cat /tmp/log '
- run: make test

- run: make install
if: ${{ matrix.entry.check }}
Expand Down
4 changes: 2 additions & 2 deletions debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ setup_debug_log(void)
ruby_debug_log_mode |= ruby_debug_log_file;

// pid extension with %p
int len = strlen(log_config);
unsigned long len = strlen(log_config);

for (int i=0, j=0; i<len; i++) {
for (unsigned long i=0, j=0; i<len; i++) {
const char c = log_config[i];

if (c == '%') {
Expand Down
2 changes: 1 addition & 1 deletion vm_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void ruby_set_debug_option(const char *str);
RUBY_SYMBOL_EXPORT_END

#ifndef USE_RUBY_DEBUG_LOG
#define USE_RUBY_DEBUG_LOG 1
#define USE_RUBY_DEBUG_LOG 0
#endif

/* RUBY_DEBUG_LOG: Logging debug information mechanism
Expand Down

0 comments on commit 19339c5

Please sign in to comment.