mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +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:
@@ -286,8 +286,8 @@ sub print_out
|
||||
|
||||
if(defined $filedebug)
|
||||
{
|
||||
open(DBG, ">>$filedebug");
|
||||
$lcolor = 'reset' if(!(defined $debugfilecolors));
|
||||
open(DBG, ">>$filedebug");
|
||||
$lcolor = 'reset' if((defined $debugfilecolors));
|
||||
print DBG color $lcolor if((defined $debugfilecolors));
|
||||
print DBG $ltext;
|
||||
close(DBG);
|
||||
|
Reference in New Issue
Block a user