use globalWarningStream()

This commit is contained in:
Garux
2018-03-21 04:12:06 +03:00
parent 54a98ed5e8
commit b1e2f26124
24 changed files with 47 additions and 47 deletions

View File

@@ -308,7 +308,7 @@ static void saxStartElement( message_info_t *data, const xmlChar *name, const xm
}
else
{
globalErrorStream() << "Warning: ignoring unrecognized node in XML stream (" << reinterpret_cast<const char*>( name ) << ")\n";
globalWarningStream() << "Warning: ignoring unrecognized node in XML stream (" << reinterpret_cast<const char*>( name ) << ")\n";
// we don't recognize this node, jump over it
// (NOTE: the ignore mechanism is a bit screwed, only works when starting an ignore at the highest level)
data->ignore_depth = data->recurse;
@@ -401,7 +401,7 @@ static void saxWarning( void *ctx, const char *msg, ... ){
va_start( args, msg );
vsprintf( saxMsgBuffer, msg, args );
va_end( args );
globalOutputStream() << "XML warning: " << saxMsgBuffer << "\n";
globalWarningStream() << "XML warning: " << saxMsgBuffer << "\n";
}
static void saxError( void *ctx, const char *msg, ... ){
@@ -648,8 +648,8 @@ void CWatchBSP::RoutineProcessing(){
int ret = Net_Wait( m_pInSocket, 0, 0 );
if ( ret == -1 ) {
globalOutputStream() << "WARNING: SOCKET_ERROR in CWatchBSP::RoutineProcessing\n";
globalOutputStream() << "Terminating the connection.\n";
globalErrorStream() << "SOCKET_ERROR in CWatchBSP::RoutineProcessing\n";
globalErrorStream() << "Terminating the connection.\n";
EndMonitoringLoop();
return;
}