Changeset 244 for cpp/frams/errmgr


Ignore:
Timestamp:
05/31/14 21:31:01 (10 years ago)
Author:
Maciej Komosinski
Message:

Printing multi-line messages splits the message into separate lines and adds "..." prefix

Location:
cpp/frams/errmgr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/errmgr/errmanager.cpp

    r197 r244  
    66#include <common/stl-util.h>
    77
    8 void FramMessage(const char *o,const char *m,const char *bl,int w)
     8void _FramMessageSingleLine(const char *o, const char *m, const char *txt, int w)
    99{
    10 tlsGetRef(errmgr_instance).send(o,m,bl,w);
     10tlsGetRef(errmgr_instance).send(o,m,txt,w);
    1111}
    1212
  • cpp/frams/errmgr/stdouterr.cpp

    r197 r244  
    1010#endif
    1111
    12 void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w)
     12void StdoutErrorHandler::handle(const char *o, const char *m, const char *bl, int w)
    1313{
    14 if (w<-1) w=-1; else if (w>3) w=3;
     14        if (w < -1) w = -1; else if (w>3) w = 3;
    1515#ifdef SHP
    16 AppLog("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);
     16        AppLog("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);
    1717#else
    18 if (file)
    19         file->printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);
    20 else
    21         printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);
     18        if (file)
     19                file->printf("[%s] %s::%s - %s\n", MSG_LEVEL[w + 1], o, m, bl);
     20        else
     21                printf("[%s] %s::%s - %s\n", MSG_LEVEL[w + 1], o, m, bl);
    2222#endif
    2323}
Note: See TracChangeset for help on using the changeset viewer.