scripts/trace/sipgrep: correctly interpret option -C (print ANSI colors in debug file only when option -C is defined)

This commit is contained in:
Giovanni Maruzzelli 2012-10-01 01:26:20 +02:00
parent 8d61404016
commit 677d16cfd5
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}