(minor) add a 'dd' function to quickly dump stuff to STDERR
This commit is contained in:
parent
ba67f6f9ca
commit
7409635823
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue