ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.441 by root, Sat Aug 30 05:19:03 2008 UTC vs.
Revision 1.451 by root, Mon Sep 22 05:42:41 2008 UTC

63 63
64# configure various modules to our taste 64# configure various modules to our taste
65# 65#
66$Storable::canonical = 1; # reduce rsync transfers 66$Storable::canonical = 1; # reduce rsync transfers
67Coro::State::cctx_stacksize 256000; # 1-2MB stack, for deep recursions in maze generator 67Coro::State::cctx_stacksize 256000; # 1-2MB stack, for deep recursions in maze generator
68
69$Coro::main->prio (Coro::PRIO_MAX); # run main coroutine ("the server") with very high priority
70
71# make sure c-lzf reinitialises itself
72Compress::LZF::set_serializer "Storable", "Storable::net_mstore", "Storable::mretrieve";
68Compress::LZF::sfreeze_cr { }; # prime Compress::LZF so it does not use require later 73Compress::LZF::sfreeze_cr { }; # prime Compress::LZF so it does not use require later
69
70$Coro::main->prio (Coro::PRIO_MAX); # run main coroutine ("the server") with very high priority
71 74
72sub WF_AUTOCANCEL () { 1 } # automatically cancel this watcher on reload 75sub WF_AUTOCANCEL () { 1 } # automatically cancel this watcher on reload
73 76
74our %COMMAND = (); 77our %COMMAND = ();
75our %COMMAND_TIME = (); 78our %COMMAND_TIME = ();
78our %EXTCMD = (); 81our %EXTCMD = ();
79our %EXTICMD = (); 82our %EXTICMD = ();
80our %EXT_CORO = (); # coroutines bound to extensions 83our %EXT_CORO = (); # coroutines bound to extensions
81our %EXT_MAP = (); # pluggable maps 84our %EXT_MAP = (); # pluggable maps
82 85
83our $RELOAD; # number of reloads so far 86our $RELOAD; # number of reloads so far, non-zero while in reload
84our @EVENT; 87our @EVENT;
85 88
86our $CONFDIR = confdir; 89our $CONFDIR = confdir;
87our $DATADIR = datadir; 90our $DATADIR = datadir;
88our $LIBDIR = "$DATADIR/ext"; 91our $LIBDIR = "$DATADIR/ext";
89our $PODDIR = "$DATADIR/pod"; 92our $PODDIR = "$DATADIR/pod";
90our $MAPDIR = "$DATADIR/" . mapdir; 93our $MAPDIR = "$DATADIR/" . mapdir;
91our $LOCALDIR = localdir; 94our $LOCALDIR = localdir;
92our $TMPDIR = "$LOCALDIR/" . tmpdir; 95our $TMPDIR = "$LOCALDIR/" . tmpdir;
93our $UNIQUEDIR = "$LOCALDIR/" . uniquedir; 96our $UNIQUEDIR = "$LOCALDIR/" . uniquedir;
94our $PLAYERDIR = "$LOCALDIR/" . playerdir; 97our $PLAYERDIR = "$LOCALDIR/" . playerdir;
95our $RANDOMDIR = "$LOCALDIR/random"; 98our $RANDOMDIR = "$LOCALDIR/random";
96our $BDBDIR = "$LOCALDIR/db"; 99our $BDBDIR = "$LOCALDIR/db";
100our $PIDFILE = "$LOCALDIR/pid";
101our $RUNTIMEFILE = "$LOCALDIR/runtime";
102
97our %RESOURCE; 103our %RESOURCE;
98 104
99our $TICK = MAX_TIME * 1e-6; # this is a CONSTANT(!) 105our $TICK = MAX_TIME * 1e-6; # this is a CONSTANT(!)
100our $NEXT_RUNTIME_WRITE; # when should the runtime file be written 106our $NEXT_RUNTIME_WRITE; # when should the runtime file be written
101our $NEXT_TICK; 107our $NEXT_TICK;
126 132
127binmode STDOUT; 133binmode STDOUT;
128binmode STDERR; 134binmode STDERR;
129 135
130# read virtual server time, if available 136# read virtual server time, if available
131unless ($RUNTIME || !-e "$LOCALDIR/runtime") { 137unless ($RUNTIME || !-e $RUNTIMEFILE) {
132 open my $fh, "<", "$LOCALDIR/runtime" 138 open my $fh, "<", $RUNTIMEFILE
133 or die "unable to read runtime file: $!"; 139 or die "unable to read $RUNTIMEFILE file: $!";
134 $RUNTIME = <$fh> + 0.; 140 $RUNTIME = <$fh> + 0.;
135} 141}
136 142
137mkdir $_ 143mkdir $_
138 for $LOCALDIR, $TMPDIR, $UNIQUEDIR, $PLAYERDIR, $RANDOMDIR, $BDBDIR; 144 for $LOCALDIR, $TMPDIR, $UNIQUEDIR, $PLAYERDIR, $RANDOMDIR, $BDBDIR;
335 return;#d# 341 return;#d#
336 }#d# 342 }#d#
337 343
338 # wait for lock, if any 344 # wait for lock, if any
339 while ($LOCK{$key}) { 345 while ($LOCK{$key}) {
346 #local $Coro::current->{desc} = "$Coro::current->{desc} <waiting for lock $key>";
340 push @{ $LOCK{$key} }, $Coro::current; 347 push @{ $LOCK{$key} }, $Coro::current;
341 Coro::schedule; 348 Coro::schedule;
342 } 349 }
343} 350}
344 351
727 734
728############################################################################# 735#############################################################################
729 736
730=head2 ATTACHABLE OBJECTS 737=head2 ATTACHABLE OBJECTS
731 738
732Many objects in crossfire are so-called attachable objects. That means you can 739Many objects in deliantra are so-called attachable objects. That means you can
733attach callbacks/event handlers (a collection of which is called an "attachment") 740attach callbacks/event handlers (a collection of which is called an "attachment")
734to it. All such attachable objects support the following methods. 741to it. All such attachable objects support the following methods.
735 742
736In the following description, CLASS can be any of C<global>, C<object> 743In the following description, CLASS can be any of C<global>, C<object>
737C<player>, C<client> or C<map> (i.e. the attachable objects in 744C<player>, C<client> or C<map> (i.e. the attachable objects in
787=item cf::CLASS::attachment $name, ... 794=item cf::CLASS::attachment $name, ...
788 795
789Register an attachment by C<$name> through which attachable objects of the 796Register an attachment by C<$name> through which attachable objects of the
790given CLASS can refer to this attachment. 797given CLASS can refer to this attachment.
791 798
792Some classes such as crossfire maps and objects can specify attachments 799Some classes such as deliantra maps and objects can specify attachments
793that are attached at load/instantiate time, thus the need for a name. 800that are attached at load/instantiate time, thus the need for a name.
794 801
795These calls expect any number of the following handler/hook descriptions: 802These calls expect any number of the following handler/hook descriptions:
796 803
797=over 4 804=over 4
1385 1392
1386=back 1393=back
1387 1394
1388=head2 CORE EXTENSIONS 1395=head2 CORE EXTENSIONS
1389 1396
1390Functions and methods that extend core crossfire objects. 1397Functions and methods that extend core deliantra objects.
1391 1398
1392=cut 1399=cut
1393 1400
1394package cf::player; 1401package cf::player;
1395 1402
1523 my ($pl) = @_; 1530 my ($pl) = @_;
1524 1531
1525 my $name = $pl->ob->name; 1532 my $name = $pl->ob->name;
1526 1533
1527 $pl->{deny_save} = 1; 1534 $pl->{deny_save} = 1;
1528 $pl->password ("*"); # this should lock out the player until we nuked the dir 1535 $pl->password ("*"); # this should lock out the player until we have nuked the dir
1529 1536
1530 $pl->invoke (cf::EVENT_PLAYER_LOGOUT, 1) if $pl->active; 1537 $pl->invoke (cf::EVENT_PLAYER_LOGOUT, 1) if $pl->active;
1531 $pl->deactivate; 1538 $pl->deactivate;
1532 my $killer = cf::arch::get "killer_quit"; $pl->killer ($killer); $killer->destroy; 1539 my $killer = cf::arch::get "killer_quit"; $pl->killer ($killer); $killer->destroy;
1533 $pl->ob->check_score; 1540 $pl->ob->check_score;
1619 } 1626 }
1620 1627
1621 \@paths 1628 \@paths
1622} 1629}
1623 1630
1624=item $protocol_xml = $player->expand_cfpod ($crossfire_pod) 1631=item $protocol_xml = $player->expand_cfpod ($cfpod)
1625 1632
1626Expand crossfire pod fragments into protocol xml. 1633Expand deliantra pod fragments into protocol xml.
1627
1628=cut
1629
1630use re 'eval';
1631
1632my $group;
1633my $interior; $interior = qr{
1634 # match a pod interior sequence sans C<< >>
1635 (?:
1636 \ (.*?)\ (?{ $group = $^N })
1637 | < (??{$interior}) >
1638 )
1639}x;
1640
1641sub expand_cfpod {
1642 my ($self, $pod) = @_;
1643
1644 my $xml;
1645
1646 while () {
1647 if ($pod =~ /\G( (?: [^BCGHITU]+ | .(?!<) )+ )/xgcs) {
1648 $group = $1;
1649
1650 $group =~ s/&/&amp;/g;
1651 $group =~ s/</&lt;/g;
1652
1653 $xml .= $group;
1654 } elsif ($pod =~ m%\G
1655 ([BCGHITU])
1656 <
1657 (?:
1658 ([^<>]*) (?{ $group = $^N })
1659 | < $interior >
1660 )
1661 >
1662 %gcsx
1663 ) {
1664 my ($code, $data) = ($1, $group);
1665
1666 if ($code eq "B") {
1667 $xml .= "<b>" . expand_cfpod ($self, $data) . "</b>";
1668 } elsif ($code eq "I") {
1669 $xml .= "<i>" . expand_cfpod ($self, $data) . "</i>";
1670 } elsif ($code eq "U") {
1671 $xml .= "<u>" . expand_cfpod ($self, $data) . "</u>";
1672 } elsif ($code eq "C") {
1673 $xml .= "<tt>" . expand_cfpod ($self, $data) . "</tt>";
1674 } elsif ($code eq "T") {
1675 $xml .= "<big><b>" . expand_cfpod ($self, $data) . "</b></big>";
1676 } elsif ($code eq "G") {
1677 my ($male, $female) = split /\|/, $data;
1678 $data = $self->gender ? $female : $male;
1679 $xml .= expand_cfpod ($self, $data);
1680 } elsif ($code eq "H") {
1681 $xml .= ("<fg name=\"lightblue\">[" . expand_cfpod ($self, $data) . " (Use hintmode to suppress hints)]</fg>",
1682 "<fg name=\"lightblue\">[Hint suppressed, see hintmode]</fg>",
1683 "")
1684 [$self->{hintmode}];
1685 } else {
1686 $xml .= "error processing '$code($data)' directive";
1687 }
1688 } else {
1689 if ($pod =~ /\G(.+)/) {
1690 warn "parse error while expanding $pod (at $1)";
1691 }
1692 last;
1693 }
1694 }
1695
1696 for ($xml) {
1697 # create single paragraphs (very hackish)
1698 s/(?<=\S)\n(?=\w)/ /g;
1699
1700 # compress some whitespace
1701 s/\s+\n/\n/g; # ws line-ends
1702 s/\n\n+/\n/g; # double lines
1703 s/^\n+//; # beginning lines
1704 s/\n+$//; # ending lines
1705 }
1706
1707 $xml
1708}
1709
1710no re 'eval';
1711
1712sub hintmode {
1713 $_[0]{hintmode} = $_[1] if @_ > 1;
1714 $_[0]{hintmode}
1715}
1716 1634
1717=item $player->ext_reply ($msgid, @msg) 1635=item $player->ext_reply ($msgid, @msg)
1718 1636
1719Sends an ext reply to the player. 1637Sends an ext reply to the player.
1720 1638
2534 2452
2535=item $player_object->enter_link 2453=item $player_object->enter_link
2536 2454
2537Freezes the player and moves him/her to a special map (C<{link}>). 2455Freezes the player and moves him/her to a special map (C<{link}>).
2538 2456
2539The player should be reasonably safe there for short amounts of time. You 2457The player should be reasonably safe there for short amounts of time (e.g.
2540I<MUST> call C<leave_link> as soon as possible, though. 2458for loading a map). You I<MUST> call C<leave_link> as soon as possible,
2459though, as the palyer cannot control the character while it is on the link
2460map.
2541 2461
2542Will never block. 2462Will never block.
2543 2463
2544=item $player_object->leave_link ($map, $x, $y) 2464=item $player_object->leave_link ($map, $x, $y)
2545 2465
2603 2523
2604 $map->load; 2524 $map->load;
2605 $map->load_neighbours; 2525 $map->load_neighbours;
2606 2526
2607 return unless $self->contr->active; 2527 return unless $self->contr->active;
2528 $self->flag (cf::FLAG_DEBUG, 0);#d# temp
2608 $self->activate_recursive; 2529 $self->activate_recursive;
2609 2530
2610 local $self->{_prev_pos} = $link_pos; # ugly hack for rent.ext 2531 local $self->{_prev_pos} = $link_pos; # ugly hack for rent.ext
2611 $self->enter_map ($map, $x, $y); 2532 $self->enter_map ($map, $x, $y);
2612} 2533}
2775 $self->contr->savebed ($map, $x, $y) 2696 $self->contr->savebed ($map, $x, $y)
2776 if $exit->flag (cf::FLAG_DAMNED); 2697 if $exit->flag (cf::FLAG_DAMNED);
2777 2698
2778 1 2699 1
2779 }) { 2700 }) {
2780 $self->message ("Something went wrong deep within the crossfire server. " 2701 $self->message ("Something went wrong deep within the deliantra server. "
2781 . "I'll try to bring you back to the map you were before. " 2702 . "I'll try to bring you back to the map you were before. "
2782 . "Please report this to the dungeon master!", 2703 . "Please report this to the dungeon master!",
2783 cf::NDI_UNIQUE | cf::NDI_RED); 2704 cf::NDI_UNIQUE | cf::NDI_RED);
2784 2705
2785 warn "ERROR in enter_exit: $@"; 2706 warn "ERROR in enter_exit: $@";
2851 id => "infobox", 2772 id => "infobox",
2852 title => "Body Parts", 2773 title => "Body Parts",
2853 reply => undef, 2774 reply => undef,
2854 tooltip => "Shows which body parts you posess and are available", 2775 tooltip => "Shows which body parts you posess and are available",
2855 }, 2776 },
2777 "c/skills" => {
2778 id => "infobox",
2779 title => "Skills",
2780 reply => undef,
2781 tooltip => "Shows your experience per skill and item power",
2782 },
2856 "c/uptime" => { 2783 "c/uptime" => {
2857 id => "infobox", 2784 id => "infobox",
2858 title => "Uptime", 2785 title => "Uptime",
2859 reply => undef, 2786 reply => undef,
2860 tooltip => "How long the server has been running since last restart", 2787 tooltip => "How long the server has been running since last restart",
2874); 2801);
2875 2802
2876sub cf::client::send_msg { 2803sub cf::client::send_msg {
2877 my ($self, $channel, $msg, $color, @extra) = @_; 2804 my ($self, $channel, $msg, $color, @extra) = @_;
2878 2805
2879 $msg = $self->pl->expand_cfpod ($msg); 2806 $msg = $self->pl->expand_cfpod ($msg)
2807 unless $color & cf::NDI_VERBATIM;
2880 2808
2881 $color &= cf::NDI_CLIENT_MASK; # just in case... 2809 $color &= cf::NDI_CLIENT_MASK; # just in case...
2882 2810
2883 # check predefined channels, for the benefit of C 2811 # check predefined channels, for the benefit of C
2884 if ($CHANNEL{$channel}) { 2812 if ($CHANNEL{$channel}) {
2905 if ($self->can_msg) { 2833 if ($self->can_msg) {
2906 # default colour, mask it out 2834 # default colour, mask it out
2907 $color &= ~(cf::NDI_COLOR_MASK | cf::NDI_DEF) 2835 $color &= ~(cf::NDI_COLOR_MASK | cf::NDI_DEF)
2908 if $color & cf::NDI_DEF; 2836 if $color & cf::NDI_DEF;
2909 2837
2910 $self->send_packet ("msg " . $self->{json_coder}->encode ( 2838 my $pkt = "msg "
2839 . $self->{json_coder}->encode (
2911 [$color & cf::NDI_CLIENT_MASK, $channel, $msg, @extra])); 2840 [$color & cf::NDI_CLIENT_MASK, $channel, $msg, @extra]
2841 );
2842
2843 # try lzf for large packets
2844 $pkt = "lzf " . Compress::LZF::compress $pkt
2845 if 1024 <= length $pkt and $self->{can_lzf};
2846
2847 # split very large packets
2848 if (8192 < length $pkt and $self->{can_lzf}) {
2849 $self->send_packet ("frag $_") for unpack "(a8192)*", $pkt;
2850 $pkt = "frag";
2851 }
2852
2853 $self->send_packet ($pkt);
2912 } else { 2854 } else {
2913 if ($color >= 0) { 2855 if ($color >= 0) {
2914 # replace some tags by gcfclient-compatible ones 2856 # replace some tags by gcfclient-compatible ones
2915 for ($msg) { 2857 for ($msg) {
2916 1 while 2858 1 while
3428 }; 3370 };
3429 warn $@ if $@; 3371 warn $@ if $@;
3430 } 3372 }
3431} 3373}
3432 3374
3375sub pidfile() {
3376 sysopen my $fh, $PIDFILE, O_RDWR | O_CREAT
3377 or die "$PIDFILE: $!";
3378 flock $fh, &Fcntl::LOCK_EX
3379 or die "$PIDFILE: flock: $!";
3380 $fh
3381}
3382
3383# make sure only one server instance is running at any one time
3384sub atomic {
3385 my $fh = pidfile;
3386
3387 my $pid = <$fh>;
3388 kill 9, $pid if $pid > 0;
3389
3390 seek $fh, 0, 0;
3391 print $fh $$;
3392}
3393
3433sub main { 3394sub main {
3395 atomic;
3396
3434 # we must not ever block the main coroutine 3397 # we must not ever block the main coroutine
3435 local $Coro::idle = sub { 3398 local $Coro::idle = sub {
3436 Carp::cluck "FATAL: Coro::idle was called, major BUG, use cf::sync_job!\n";#d# 3399 Carp::cluck "FATAL: Coro::idle was called, major BUG, use cf::sync_job!\n";#d#
3437 (async { 3400 (async {
3438 $Coro::current->{desc} = "IDLE BUG HANDLER"; 3401 $Coro::current->{desc} = "IDLE BUG HANDLER";
3447 load_extensions; 3410 load_extensions;
3448 3411
3449 $Coro::current->prio (Coro::PRIO_MAX); # give the main loop max. priority 3412 $Coro::current->prio (Coro::PRIO_MAX); # give the main loop max. priority
3450 } 3413 }
3451 3414
3415 utime time, time, $RUNTIMEFILE;
3416
3417 # no (long-running) fork's whatsoever before this point(!)
3418 POSIX::close delete $ENV{LOCKUTIL_LOCK_FD} if exists $ENV{LOCKUTIL_LOCK_FD};
3419
3452 EV::loop; 3420 EV::loop;
3453} 3421}
3454 3422
3455############################################################################# 3423#############################################################################
3456# initialisation and cleanup 3424# initialisation and cleanup
3464 }; 3432 };
3465 } 3433 }
3466} 3434}
3467 3435
3468sub write_runtime_sync { 3436sub write_runtime_sync {
3469 my $runtime = "$LOCALDIR/runtime";
3470
3471 # first touch the runtime file to show we are still running: 3437 # first touch the runtime file to show we are still running:
3472 # the fsync below can take a very very long time. 3438 # the fsync below can take a very very long time.
3473 3439
3474 IO::AIO::aio_utime $runtime, undef, undef; 3440 IO::AIO::aio_utime $RUNTIMEFILE, undef, undef;
3475 3441
3476 my $guard = cf::lock_acquire "write_runtime"; 3442 my $guard = cf::lock_acquire "write_runtime";
3477 3443
3478 my $fh = aio_open "$runtime~", O_WRONLY | O_CREAT, 0644 3444 my $fh = aio_open "$RUNTIMEFILE~", O_WRONLY | O_CREAT, 0644
3479 or return; 3445 or return;
3480 3446
3481 my $value = $cf::RUNTIME + 90 + 10; 3447 my $value = $cf::RUNTIME + 90 + 10;
3482 # 10 is the runtime save interval, for a monotonic clock 3448 # 10 is the runtime save interval, for a monotonic clock
3483 # 60 allows for the watchdog to kill the server. 3449 # 60 allows for the watchdog to kill the server.
3493 aio_utime $fh, undef, undef; 3459 aio_utime $fh, undef, undef;
3494 3460
3495 close $fh 3461 close $fh
3496 or return; 3462 or return;
3497 3463
3498 aio_rename "$runtime~", $runtime 3464 aio_rename "$RUNTIMEFILE~", $RUNTIMEFILE
3499 and return; 3465 and return;
3500 3466
3501 warn "runtime file written.\n"; 3467 warn "runtime file written.\n";
3502 3468
3503 1 3469 1
3587sub post_cleanup { 3553sub post_cleanup {
3588 my ($make_core) = @_; 3554 my ($make_core) = @_;
3589 3555
3590 warn Carp::longmess "post_cleanup backtrace" 3556 warn Carp::longmess "post_cleanup backtrace"
3591 if $make_core; 3557 if $make_core;
3558
3559 my $fh = pidfile;
3560 unlink $PIDFILE if <$fh> == $$;
3592} 3561}
3593 3562
3594# a safer delete_package, copied from Symbol 3563# a safer delete_package, copied from Symbol
3595sub clear_package($) { 3564sub clear_package($) {
3596 my $pkg = shift; 3565 my $pkg = shift;
3612 my $leaf_symtab = *{$stem_symtab->{$leaf}}{HASH}; 3581 my $leaf_symtab = *{$stem_symtab->{$leaf}}{HASH};
3613 for my $name (keys %$leaf_symtab) { 3582 for my $name (keys %$leaf_symtab) {
3614 _gv_clear *{"$pkg$name"}; 3583 _gv_clear *{"$pkg$name"};
3615# use PApp::Util; PApp::Util::sv_dump *{"$pkg$name"}; 3584# use PApp::Util; PApp::Util::sv_dump *{"$pkg$name"};
3616 } 3585 }
3617 warn "cleared package #$pkg\n";#d# 3586 warn "cleared package $pkg\n";#d#
3618} 3587}
3619
3620our $RELOAD; # how many times to reload
3621 3588
3622sub do_reload_perl() { 3589sub do_reload_perl() {
3623 # can/must only be called in main 3590 # can/must only be called in main
3624 if ($Coro::current != $Coro::main) { 3591 if ($Coro::current != $Coro::main) {
3625 warn "can only reload from main coroutine"; 3592 warn "can only reload from main coroutine";
3739 3706
3740sub reload_perl() { 3707sub reload_perl() {
3741 # doing reload synchronously and two reloads happen back-to-back, 3708 # doing reload synchronously and two reloads happen back-to-back,
3742 # coro crashes during coro_state_free->destroy here. 3709 # coro crashes during coro_state_free->destroy here.
3743 3710
3744 $RELOAD_WATCHER ||= EV::timer 0, 0, sub { 3711 $RELOAD_WATCHER ||= EV::timer $TICK * 1.5, 0, sub {
3745 do_reload_perl; 3712 do_reload_perl;
3746 undef $RELOAD_WATCHER; 3713 undef $RELOAD_WATCHER;
3747 }; 3714 };
3748} 3715}
3749 3716
3877 $msg =~ s/\n//; 3844 $msg =~ s/\n//;
3878 3845
3879 # limit the # of concurrent backtraces 3846 # limit the # of concurrent backtraces
3880 if ($_log_backtrace < 2) { 3847 if ($_log_backtrace < 2) {
3881 ++$_log_backtrace; 3848 ++$_log_backtrace;
3849 my $perl_bt = Carp::longmess $msg;
3882 async { 3850 async {
3883 $Coro::current->{desc} = "abt $msg"; 3851 $Coro::current->{desc} = "abt $msg";
3884 3852
3885 my @bt = fork_call { 3853 my @bt = fork_call {
3886 @addr = map { sprintf "%x", $_ } @addr; 3854 @addr = map { sprintf "%x", $_ } @addr;
3897 } 3865 }
3898 3866
3899 @funcs 3867 @funcs
3900 }; 3868 };
3901 3869
3902 LOG llevInfo, "[ABT] $msg\n"; 3870 LOG llevInfo, "[ABT] $perl_bt\n";
3871 LOG llevInfo, "[ABT] --- C backtrace follows ---\n";
3903 LOG llevInfo, "[ABT] $_\n" for @bt; 3872 LOG llevInfo, "[ABT] $_\n" for @bt;
3904 --$_log_backtrace; 3873 --$_log_backtrace;
3905 }; 3874 };
3906 } else { 3875 } else {
3907 LOG llevInfo, "[ABT] $msg\n"; 3876 LOG llevInfo, "[ABT] $msg\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines