summaryrefslogtreecommitdiff
path: root/lib/oxidized/log.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-08-16 11:50:04 +0300
committerSaku Ytti <saku@ytti.fi>2014-08-16 11:50:04 +0300
commitb9db9a117daf3f1870e05906b9b05902d1f9b22e (patch)
tree338fa88e27e230f5639bf2741ed0629ad4f9a940 /lib/oxidized/log.rb
parent29c75a45fa8fd5589cc34f7f2841cd163c56b160 (diff)
Closes #37
Diffstat (limited to 'lib/oxidized/log.rb')
-rw-r--r--lib/oxidized/log.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/log.rb b/lib/oxidized/log.rb
index 9e77646..e9ae1b4 100644
--- a/lib/oxidized/log.rb
+++ b/lib/oxidized/log.rb
@@ -12,6 +12,7 @@ module Oxidized
super target
end
def file= target
+ FileUtils.mkdir_p File.dirname(target)
@logdev = LogDevice.new target
end
end