Permalink
Browse files

(minor) add a 'dd' function to quickly dump stuff to STDERR

  • Loading branch information...
1 parent ba67f6f commit 740963582301665bcf9ece47a4fb438beed35589 @sitaramc committed Aug 17, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/lib/Gitolite/Common.pm
@@ -12,6 +12,8 @@ package Gitolite::Common;
usage tsh_run
gen_lfn
gl_log
+
+ dd
);
#>>>
use Exporter 'import';
@@ -63,6 +65,11 @@ sub dbg {
}
}
+sub dd {
+ local $ENV{D} = 1;
+ dbg(@_);
+}
+
sub _warn {
gl_log( 'warn', @_ );
if ( $ENV{D} and $ENV{D} >= 3 ) {

0 comments on commit 7409635

Please sign in to comment.