Version 1.4.1

- Changed the log messages when grabbing an image from 'isyslog()' to 'dsyslog()'
  so that they can be suppressed in normal operation mode to avoid clogging the
  log file in case this function is used frequently (suggested by Helmut Auer).
This commit is contained in:
Klaus Schmidinger
2006-06-11 18:00:00 +02:00
parent 21f3eaf6c9
commit 2bb3251354
5 changed files with 15 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
* $Id: svdrp.c 1.96 2006/06/03 09:17:17 kls Exp $
* $Id: svdrp.c 1.97 2006/06/11 09:04:36 kls Exp $
*/
#include "svdrp.h"
@@ -779,7 +779,7 @@ void cSVDRP::CmdGRAB(const char *Option)
int fd = open(FileName, O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC, DEFFILEMODE);
if (fd >= 0) {
if (safe_write(fd, Image, ImageSize) == ImageSize) {
isyslog("grabbed image to %s", FileName);
dsyslog("grabbed image to %s", FileName);
Reply(250, "Grabbed image %s", Option);
}
else {