From afb11b4af2d4bd9bafd2238f338411e6cd538b14 Mon Sep 17 00:00:00 2001
From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Tue, 12 Nov 2002 22:39:21 +0000
Subject: [PATCH] Logged email message

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@250 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/smartd.c   | 6 ++++--
 sm5/smartd.cpp | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/sm5/smartd.c b/sm5/smartd.c
index 393f25e36..00c9b6f3f 100644
--- a/sm5/smartd.c
+++ b/sm5/smartd.c
@@ -45,7 +45,7 @@
 
 // CVS ID strings
 extern const char *CVSid1, *CVSid2;
-const char *CVSid6="$Id: smartd.c,v 1.59 2002/11/12 22:35:43 ballen4705 Exp $" 
+const char *CVSid6="$Id: smartd.c,v 1.60 2002/11/12 22:39:21 ballen4705 Exp $" 
 CVSID1 CVSID2 CVSID3 CVSID4 CVSID7;
 
 // global variable used for control of printing, passing arguments, etc.
@@ -122,7 +122,9 @@ void printandmail(char *address, mailinfo *mail, int priority, char *fmt, ...){
   if (WEXITSTATUS(status))
     printout(LOG_CRIT,"Email warning message to %s failed (exit status %d)\n",address,status);
   else
-    return;
+    printout(LOG_INFO,"Email warning message sent to %s\n",address);
+
+  return;
 }
 
 // Printing function for watching ataprint commands, or losing them
diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp
index ca964127a..840c494e6 100644
--- a/sm5/smartd.cpp
+++ b/sm5/smartd.cpp
@@ -45,7 +45,7 @@
 
 // CVS ID strings
 extern const char *CVSid1, *CVSid2;
-const char *CVSid6="$Id: smartd.cpp,v 1.59 2002/11/12 22:35:43 ballen4705 Exp $" 
+const char *CVSid6="$Id: smartd.cpp,v 1.60 2002/11/12 22:39:21 ballen4705 Exp $" 
 CVSID1 CVSID2 CVSID3 CVSID4 CVSID7;
 
 // global variable used for control of printing, passing arguments, etc.
@@ -122,7 +122,9 @@ void printandmail(char *address, mailinfo *mail, int priority, char *fmt, ...){
   if (WEXITSTATUS(status))
     printout(LOG_CRIT,"Email warning message to %s failed (exit status %d)\n",address,status);
   else
-    return;
+    printout(LOG_INFO,"Email warning message sent to %s\n",address);
+
+  return;
 }
 
 // Printing function for watching ataprint commands, or losing them
-- 
GitLab