mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-20 00:08:33 +00:00
scripts/trace/sipgrep: correctly interpret option -C (print ANSI colors in debug file only when option -C is defined)
This commit is contained in:
1 parent
8d61404016
commit
677d16cfd5
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user