[Box Backup-dev] COMMIT r412 - box/chris/win32/vc2005-compile-fixes/bin/bbackupd

Ben Summers boxbackup-dev@fluffy.co.uk
Thu, 9 Feb 2006 08:20:35 +0000


Why is this necessary? There's nothing special about the keep alive  
messages which would mean that the Protocol object wouldn't do the  
logging.

Ben


On 8 Feb 2006, at 20:39, subversion@fluffy.co.uk wrote:

> Author: chris
> Date: 2006-02-08 20:39:44 +0000 (Wed, 08 Feb 2006)
> New Revision: 412
>
> Modified:
>    box/chris/win32/vc2005-compile-fixes/bin/bbackupd/ 
> BackupClientContext.cpp
> Log:
> * BackupClientContext.cpp
> - Log when keepalive packets are sent
>
>
> Modified: box/chris/win32/vc2005-compile-fixes/bin/bbackupd/ 
> BackupClientContext.cpp
> ===================================================================
> --- box/chris/win32/vc2005-compile-fixes/bin/bbackupd/ 
> BackupClientContext.cpp	2006-02-08 00:48:57 UTC (rev 411)
> +++ box/chris/win32/vc2005-compile-fixes/bin/bbackupd/ 
> BackupClientContext.cpp	2006-02-08 20:39:44 UTC (rev 412)
> @@ -602,8 +602,17 @@
>  void BackupClientContext::DoKeepAlive()
>  {
>  	if (!mpConnection)
> +	{
> +		::syslog(LOG_ERR, "DoKeepAlive() called with no connection!");
>  		return;
> +	}
>
> +	if (mExtendedLogging)
> +	{
> +		::syslog(LOG_INFO, "DoKeepAlive() sending keep-alive "
> +			"packet now");
> +	}
> +
>  	mpConnection->QueryGetIsAlive();
>  }
>
>
> _______________________________________________
> Boxbackup-dev mailing list
> Boxbackup-dev@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup-dev