Reduced logging for the SVDRP GRAB command

This commit is contained in:
Klaus Schmidinger 2006-06-11 09:14:22 +02:00
parent 99876fdab3
commit d324b2de88
5 changed files with 14 additions and 7 deletions

View File

@ -573,6 +573,7 @@ Helmut Auer <vdr@helmutauer.de>
message is being displayed didn't work
for reporting a problem with the "Press any key on the RC unit" step when learning
LIRC remote control codes
for suggesting to reduce the logging for the SVDRP GRAB command
Jeremy Hall <jhall@UU.NET>
for fixing an incomplete initialization of the filter parameters in eit.c

View File

@ -4776,3 +4776,9 @@ Video Disk Recorder Revision History
- Now switching to non-VPS timers' channels 60 seconds before the timer starts
(if a free device is available), to allow for the updating of EPG data and CA
descriptors before the actual recording starts.
2006-06-11: 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).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: config.h 1.259 2006/05/28 15:04:08 kls Exp $
* $Id: config.h 1.260 2006/06/11 08:57:35 kls Exp $
*/
#ifndef __CONFIG_H
@ -21,8 +21,8 @@
// VDR's own version number:
#define VDRVERSION "1.4.0-3"
#define VDRVERSNUM 10400 // Version * 10000 + Major * 100 + Minor
#define VDRVERSION "1.4.1"
#define VDRVERSNUM 10401 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number:

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: dvbdevice.c 1.158 2006/05/28 15:05:03 kls Exp $
* $Id: dvbdevice.c 1.159 2006/06/11 09:03:55 kls Exp $
*/
#include "dvbdevice.h"
@ -570,7 +570,7 @@ uchar *cDvbDevice::GrabImage(int &Size, bool Jpeg, int Quality, int SizeX, int S
if (Quality < 0)
Quality = 100;
isyslog("grabbing to %s %d %d %d", Jpeg ? "JPEG" : "PNM", Quality, vm.width, vm.height);
dsyslog("grabbing to %s %d %d %d", Jpeg ? "JPEG" : "PNM", Quality, vm.width, vm.height);
if (Jpeg) {
// convert to JPEG:
result = RgbToJpeg(mem, vm.width, vm.height, Size, Quality);

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 {