Repository: hbase Updated Branches: refs/heads/0.98 f10effb79 -> 74c716925 refs/heads/branch-1 bd2463470 -> 6a7f923c0 refs/heads/master 6e7dd6f82 -> 41ecb18c2
HBASE-11662 shell should properly handle long form --debug. Signed-off-by: Andrew Purtell <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/41ecb18c Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/41ecb18c Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/41ecb18c Branch: refs/heads/master Commit: 41ecb18c200db3ceb966fde4393b1ec013217029 Parents: 6e7dd6f Author: Sean Busbey <[email protected]> Authored: Mon Aug 4 14:47:54 2014 -0500 Committer: Andrew Purtell <[email protected]> Committed: Mon Aug 4 21:31:30 2014 -0700 ---------------------------------------------------------------------- bin/hirb.rb | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/41ecb18c/bin/hirb.rb ---------------------------------------------------------------------- diff --git a/bin/hirb.rb b/bin/hirb.rb index dc1fecc..0503c29 100644 --- a/bin/hirb.rb +++ b/bin/hirb.rb @@ -78,6 +78,7 @@ for arg in ARGV log_level = org.apache.log4j.Level::DEBUG $fullBackTrace = true @shell_debug = true + found.push(arg) puts "Setting DEBUG log level..." else # Presume it a script. Save it off for running later below @@ -91,6 +92,10 @@ end # Delete all processed args found.each { |arg| ARGV.delete(arg) } +# Make sure debug flag gets back to IRB +if @shell_debug + ARGV.unshift('-d') +end # Set logging level to avoid verboseness org.apache.log4j.Logger.getLogger("org.apache.zookeeper").setLevel(log_level)
