Skip to content

Commit f381bfa

Browse files
committed
don't print signal handlers on every run
fixes release build test
1 parent 6a6ea19 commit f381bfa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/crash_handler.d

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ static if (BacktraceHandler)
3737
])
3838
signal(sig, &backtrace_handler);
3939

40-
fprintf(stderr, "Registered backtrace signal handlers\n");
40+
// this is print on every invocation of serve-d, so we only print this in unittests and assume it works elsewhere
41+
version (unittest)
42+
fprintf(stderr, "Registered backtrace signal handlers\n");
4143
}
4244

4345
shared static this()

0 commit comments

Comments
 (0)