Ticket #53474: patch-src-logging.c.diff
File patch-src-logging.c.diff, 1.1 KB (added by denis-fr (Denis), 8 years ago) |
---|
-
src/logging.c
old new 30 30 fprintf(stderr, "%d-%02d-%02dT%02d:%02d:%02d ", tt->tm_year + 1900, tt->tm_mon + 1, tt->tm_mday, tt->tm_hour, tt->tm_min, tt->tm_sec); 31 31 switch (level) { 32 32 case UDEBUG: 33 fprintf(stderr, "DEBUG %s: ", tag);33 fprintf(stderr, "DEBUG: "); 34 34 break; 35 35 case UINFO: 36 fprintf(stderr, "INFO %s: ", tag);36 fprintf(stderr, "INFO: "); 37 37 break; 38 38 case UWARN: 39 fprintf(stderr, "WARN %s: ", tag);39 fprintf(stderr, "WARN: "); 40 40 break; 41 41 case UERROR: 42 fprintf(stderr, "ERROR %s: ", tag);42 fprintf(stderr, "ERROR: "); 43 43 break; 44 44 case UFATAL: 45 fprintf(stderr, "FATAL %s: ", tag);45 fprintf(stderr, "FATAL: "); 46 46 vfprintf(stderr, format, args); 47 47 exit(EXIT_FAILURE); 48 48 // NEVER GETS HERE!!! 49 49 break; 50 50 default: 51 fprintf(stderr, "%d %s: ", level, tag);51 fprintf(stderr, "%d: ", level); 52 52 break; 53 53 } 54 54 vfprintf(stderr, format, args);