rsync_wrap 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rsync_wrap.rb +3 -1
- metadata +1 -1
data/lib/rsync_wrap.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
require 'socket'
|
6
6
|
require 'ssh_test'
|
7
|
+
require 'logger'
|
7
8
|
|
8
9
|
class RsyncWrap
|
9
10
|
|
@@ -121,7 +122,8 @@ class RsyncWrap
|
|
121
122
|
# Decide to log or not.
|
122
123
|
if @logging == true
|
123
124
|
puts "DEBUG : Logging enabled"
|
124
|
-
|
125
|
+
log = Logger.new('/tmp/rsyncwrap.log','daily')
|
126
|
+
log.debug "#{localDir}"
|
125
127
|
system rCommand
|
126
128
|
else
|
127
129
|
puts "no logging for me"
|