diff options
author | hut <hut@lavabit.com> | 2009-07-19 16:36:31 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-19 16:36:31 +0200 |
commit | 529d411bf96b9bf0c57dd06f5afecc65e91a136d (patch) | |
tree | 3c81e7a60531bb8772c96cf4fcb56a4ba5df656b /ranger.rb | |
parent | ad6460c301cb27c6b57d3d0f30b2674fdc5779a7 (diff) | |
download | ranger-529d411bf96b9bf0c57dd06f5afecc65e91a136d.tar.gz |
configurable debug_level and debug_file
Diffstat (limited to 'ranger.rb')
-rwxr-xr-x | ranger.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ranger.rb b/ranger.rb index 5bd71303..413a98b4 100755 --- a/ranger.rb +++ b/ranger.rb @@ -46,6 +46,8 @@ opt = { :preview => true, :mouse => true, :mouse_interval => 200, + :debug_level => 3, + :debug_file => '/tmp/errorlog', :colorscheme => 'default', :cd => ARGV.include?('--cd'), } @@ -64,8 +66,8 @@ load 'data/screensaver/clock.rb' include Debug Debug.setup( :name => 'nyuron', - :file => '/tmp/errorlog', - :level => 3 ) + :file => Option.debug_file, + :level => Option.debug_level ) if pwd and !ARGV.empty? and !File.directory?(pwd) file = Directory::Entry.new(pwd) |