minor logging tweak

This commit is contained in:
Charles Kerr
2008-05-15 22:08:43 +00:00
parent 078ea29f37
commit f0b7932b90

View File

@@ -251,7 +251,10 @@ tr_msg( const char * file, int line, int level,
{
if( fp == NULL )
fp = stderr;
fprintf( fp, "%s\n", (char*)EVBUFFER_DATA(buf) );
if( name )
fprintf( fp, "%s: %s\n", name, (char*)EVBUFFER_DATA(buf) );
else
fprintf( fp, "%s\n", (char*)EVBUFFER_DATA(buf) );
fflush( fp );
}