Mageia Bugzilla – Attachment 6039 Details for
Bug 12861
draknetcenter crashed (Can't locate object method "get_interface" via package "WLAN_9E")
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
add debug instrumentation
dbg-12861.diff (text/plain), 1.58 KB, created by
Thierry Vignaud
on 2015-03-11 22:57:35 CET
(
hide
)
Description:
add debug instrumentation
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-03-11 22:57:35 CET
Size:
1.58 KB
patch
obsolete
>diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm >index 24bb998..bb30d86 100644 >--- a/lib/network/connection_manager.pm >+++ b/lib/network/connection_manager.pm >@@ -272,6 +272,7 @@ sub _get_network_event_message { > N("Hostname changed to \"%s\"", $hostname); > } elsif ($member eq 'status') { > my ($status, $interface) = @args; >+ use Data::Dumper; warn Data::Dumper->Dump([ 'curr_connections' ], [ $connections ]); > my $event_connection = find { $_->get_interface eq $interface } @$connections; > $event_connection && $event_connection->get_status_message($status); > } >diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm >index f039dfc..831b3b9 100755 >--- a/lib/network/netcenter.pm >+++ b/lib/network/netcenter.pm >@@ -159,6 +159,7 @@ sub main { > $::main_window = $w->{real_window}; > > my @connections = get_connections(); >+ use Data::Dumper; warn Data::Dumper->Dump([ \@connections ], [ '1stconnections' ]); > > my @cmanagers = map { build_cmanager($in, $net, $w, $_) } @connections; > >@@ -192,6 +193,7 @@ sub main { > my $connection = find { $_->get_interface eq $interface } get_connections() > or return; > $cmanager = build_cmanager($in, $net, $w, $connection); >+ use Data::Dumper; warn Data::Dumper->Dump([ $connection ], [ 'new_connection' ]); > push @connections, $connection; > push @cmanagers, $cmanager; > my $box = build_cmanager_box($cmanager, @connections == 0);
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index 24bb998..bb30d86 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -272,6 +272,7 @@ sub _get_network_event_message { N("Hostname changed to \"%s\"", $hostname); } elsif ($member eq 'status') { my ($status, $interface) = @args; + use Data::Dumper; warn Data::Dumper->Dump([ 'curr_connections' ], [ $connections ]); my $event_connection = find { $_->get_interface eq $interface } @$connections; $event_connection && $event_connection->get_status_message($status); } diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index f039dfc..831b3b9 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -159,6 +159,7 @@ sub main { $::main_window = $w->{real_window}; my @connections = get_connections(); + use Data::Dumper; warn Data::Dumper->Dump([ \@connections ], [ '1stconnections' ]); my @cmanagers = map { build_cmanager($in, $net, $w, $_) } @connections; @@ -192,6 +193,7 @@ sub main { my $connection = find { $_->get_interface eq $interface } get_connections() or return; $cmanager = build_cmanager($in, $net, $w, $connection); + use Data::Dumper; warn Data::Dumper->Dump([ $connection ], [ 'new_connection' ]); push @connections, $connection; push @cmanagers, $cmanager; my $box = build_cmanager_box($cmanager, @connections == 0);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12861
: 6039