History

always flush stderr in log

Spencer Salazar committed 8 years ago

Commit e98dbf11 parent f0e72991 file · +1 −1Browse files

Showing the changes to src/core/chuck_errmsg.cpp (1 of 1 file). Show all

Unified · Split

src/core/chuck_errmsg.cpp+1−1
@@ -126,13 +126,13 @@ void ck_fflush_stdout() · 125 unmodified lines
126void ck_fflush_stderr()126void ck_fflush_stderr()
127{127{
128 // check if stream contains a newline128 // check if stream contains a newline
129 if( g_stderr_stream.str().find( '\n' ) != std::string::npos )
130 {129 {
131 // if so, print it130 // if so, print it
132 if( g_stderr_callback == NULL )131 if( g_stderr_callback == NULL )
133 {132 {
134 // send to stderr133 // send to stderr
135 fprintf( stderr, "%s", g_stderr_stream.str().c_str() );134 fprintf( stderr, "%s", g_stderr_stream.str().c_str() );
135 fflush( stderr );
136 }136 }
137 else137 else
138 {138 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t