From a36db66f5db8705326e8c6899451c5fe94051edf Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 11 Aug 2015 15:49:33 +0300 Subject: Updated the fatal-error handling. Now we use the utility classes we have to log errors to syslog. --- bin/byteback-restore | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/bin/byteback-restore b/bin/byteback-restore index 2341502..7ac47dd 100755 --- a/bin/byteback-restore +++ b/bin/byteback-restore @@ -7,14 +7,12 @@ $LOAD_PATH.unshift('/usr/lib/byteback') $LOAD_PATH.unshift('./lib/') require 'trollop' +require 'byteback/util' +require 'byteback/log' +include Byteback::Util +include Byteback::Log + -# -# Show an error message and abort. -# -def fatal(str) - STDERR.puts(str) - exit(1) -end # # Run a remote command. -- cgit v1.2.1