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

redis
Sitaram Chamarty 2012-08-17 10:04:32 +05:30
parent ba67f6f9ca
commit 7409635823
1 changed files with 7 additions and 0 deletions

View File

@ -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 ) {