2006-01-18 12:07:55 +00:00
|
|
|
--- gpm-1.20.1/src/lib/report-lib.c.lib-silent 2002-12-24 23:57:16.000000000 +0100
|
|
|
|
+++ gpm-1.20.1/src/lib/report-lib.c 2006-01-18 17:55:38.000000000 +0100
|
|
|
|
@@ -24,8 +24,16 @@
|
|
|
|
|
|
|
|
#include "headers/message.h"
|
|
|
|
|
|
|
|
+static int gpm_silent() {
|
|
|
|
+ if ( getenv( "GPM_VERBOSE" ) == NULL ) return 1;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
2020-01-30 00:00:05 +00:00
|
|
|
void gpm_report(int line, const char *file, int stat, const char *text, ... )
|
2006-01-18 12:07:55 +00:00
|
|
|
{
|
|
|
|
+ if ( gpm_silent() && stat != GPM_STAT_OOPS )
|
|
|
|
+ return;
|
|
|
|
+
|
2020-01-30 00:00:05 +00:00
|
|
|
const char *string = NULL;
|
2008-07-17 09:32:32 +00:00
|
|
|
int log_level;
|
2006-01-18 12:07:55 +00:00
|
|
|
va_list ap;
|