forked from Mirrors/freeswitch
scripts/trace/sipgrep: correctly interpret option -C (print ANSI colors in debug file only when option -C is defined)
This commit is contained in:
parent
8d61404016
commit
677d16cfd5
|
@ -286,8 +286,8 @@ sub print_out
|
|||
if(defined $filedebug)
|
||||
{
|
||||
open(DBG, ">>$filedebug");
|
||||
$lcolor = 'reset' if(!(defined $debugfilecolors));
|
||||
print DBG color $lcolor if(!(defined $debugfilecolors));
|
||||
$lcolor = 'reset' if((defined $debugfilecolors));
|
||||
print DBG color $lcolor if((defined $debugfilecolors));
|
||||
print DBG $ltext;
|
||||
close(DBG);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue