[DRBD-user] [PATCH 2/4] drbd.ocf: Get rid of spiritual empty lines in output

Lars Ellenberg lars.ellenberg at linbit.com
Tue Mar 1 16:31:43 CET 2016

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


If it helps...
I guess every dropped line of log noise is a good line ;)

On Mon, Feb 29, 2016 at 03:10:36PM +0000, Vladislav Bogdanov wrote:
> Feb 29 11:26:08 node1 crmd[1649]:   notice: node1-storage-drbd_monitor_10000:292 [ \n ]
> Feb 29 11:36:22 node1 crmd[1649]:   notice: node1-storage-drbd_monitor_10000:292 [ \n ]
> Feb 29 11:36:22 node1 crmd[1649]:   notice: node1-storage-drbd_monitor_10000:398 [ \n ]
> Feb 29 11:55:32 node1 crmd[1649]:   notice: node1-storage-drbd_monitor_10000:398 [ \n ]
> Feb 29 12:31:42 node1 crmd[1583]:   notice: node1-storage-drbd_monitor_10000:291 [ \n ]
> Feb 29 12:41:48 node1 crmd[1583]:   notice: node1-storage-drbd_monitor_10000:291 [ \n ]
> Feb 29 12:41:48 node1 crmd[1583]:   notice: node1-storage-drbd_monitor_10000:381 [ \n ]
> ---
>  scripts/drbd.ocf |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/drbd.ocf b/scripts/drbd.ocf
> index 5c87d32..b6e865f 100755
> --- a/scripts/drbd.ocf
> +++ b/scripts/drbd.ocf
> @@ -294,7 +294,7 @@ do_cmd() {
>  		ocf_log debug "$DRBD_RESOURCE: Command output: $cmd_out"
>  	fi
>  
> -	echo "$cmd_out"
> +	[ -n "$cmd_out" ] && echo "$cmd_out"
>  
>  	return $ret
>  }
> -- 
> 1.7.1
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user

-- 
: Lars Ellenberg
: http://www.LINBIT.com | Your Way to High Availability
: DRBD, Linux-HA  and  Pacemaker support and consulting

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list