From ebc0485ad8ef62e03350ba77718f2d972d5ed9d0 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Wed, 5 Dec 2007 23:07:44 +0100
Subject: [PATCH] Fixed minor bugs in the error reporting.

---
 src/lib-sieve/sieve-error.c       | 6 +++---
 src/lib-sieve/sieve-interpreter.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib-sieve/sieve-error.c b/src/lib-sieve/sieve-error.c
index 2bdb8c422..db75f133b 100644
--- a/src/lib-sieve/sieve-error.c
+++ b/src/lib-sieve/sieve-error.c
@@ -48,7 +48,7 @@ void sieve_verror
 		const char *fmt, va_list args)
 {
 	if ( ehandler->log_master )
-		i_error("%s: %s", location, t_strdup_vprintf(fmt, args));
+		i_error("sieve: %s: %s", location, t_strdup_vprintf(fmt, args));
 
 	ehandler->verror(ehandler, location, fmt, args);
 	ehandler->errors++;
@@ -59,7 +59,7 @@ void sieve_vwarning
 		const char *fmt, va_list args)
 {
 	if ( ehandler->log_master )
-		i_warning("%s: %s", location, t_strdup_vprintf(fmt, args));
+		i_warning("sieve: %s: %s", location, t_strdup_vprintf(fmt, args));
 		
 	ehandler->vwarning(ehandler, location, fmt, args);
 	ehandler->warnings++;
@@ -70,7 +70,7 @@ void sieve_vinfo
 		const char *fmt, va_list args)
 {
 	if ( ehandler->log_master )
-		i_info("%s: %s", location, t_strdup_vprintf(fmt, args));
+		i_info("sieve: %s: %s", location, t_strdup_vprintf(fmt, args));
 	
 	if ( ehandler->log_info )	
 		ehandler->vinfo(ehandler, location, fmt, args);
diff --git a/src/lib-sieve/sieve-interpreter.c b/src/lib-sieve/sieve-interpreter.c
index 338ccbe25..18cfe5ba9 100644
--- a/src/lib-sieve/sieve-interpreter.c
+++ b/src/lib-sieve/sieve-interpreter.c
@@ -109,7 +109,7 @@ void sieve_runtime_error
 	va_list args;
 	
 	va_start(args, fmt);
-	sieve_vinfo(runenv->interp->ehandler, _get_location(runenv), fmt, args); 
+	sieve_verror(runenv->interp->ehandler, _get_location(runenv), fmt, args); 
 	va_end(args);
 }
 
-- 
GitLab