Mageia Bugzilla – Attachment 6722 Details for
Bug 16014
net_applet shows "down" notification when interface comes up (Gtk3::Notify::Queue always displays the 1st msg)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
log DBus errors
0001-log-dbus-errors.patch (text/plain), 944 bytes, created by
Thierry Vignaud
on 2015-06-09 13:16:19 CEST
(
hide
)
Description:
log DBus errors
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-06-09 13:16:19 CEST
Size:
944 bytes
patch
obsolete
>From afebea79d226aab7fc66c5f36a099b87aca131c7 Mon Sep 17 00:00:00 2001 >From: Thierry Vignaud <thierry.vignaud@gmail.com> >Date: Tue, 9 Jun 2015 07:14:33 -0400 >Subject: [PATCH 1/2] log dbus errors > >--- > bin/net_applet | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/bin/net_applet b/bin/net_applet >index 73ccd0c..1762309 100755 >--- a/bin/net_applet >+++ b/bin/net_applet >@@ -225,7 +225,13 @@ my %actions = ( > $icon = Gtk3::StatusIcon->new; > > eval { $dbus = dbus_object::system_bus() } if !defined($global_settings{NET_APPLET_DBUS}) || text2bool($global_settings{NET_APPLET_DBUS}); >+if (my $err = $@) { >+ log::explanations("failed to acquire DBus: $err"); >+} > eval { $net->{monitor} = network::monitor->new($dbus) } if $dbus; >+if (my $err = $@) { >+ log::explanations("failed to acquire monitor on DBus: $err (is mandi started?)"); >+} > if ($dbus) { > require network::net_applet::ifw; > network::net_applet::ifw::init(); >-- >2.3.2 >
From afebea79d226aab7fc66c5f36a099b87aca131c7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud <thierry.vignaud@gmail.com> Date: Tue, 9 Jun 2015 07:14:33 -0400 Subject: [PATCH 1/2] log dbus errors --- bin/net_applet | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/net_applet b/bin/net_applet index 73ccd0c..1762309 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -225,7 +225,13 @@ my %actions = ( $icon = Gtk3::StatusIcon->new; eval { $dbus = dbus_object::system_bus() } if !defined($global_settings{NET_APPLET_DBUS}) || text2bool($global_settings{NET_APPLET_DBUS}); +if (my $err = $@) { + log::explanations("failed to acquire DBus: $err"); +} eval { $net->{monitor} = network::monitor->new($dbus) } if $dbus; +if (my $err = $@) { + log::explanations("failed to acquire monitor on DBus: $err (is mandi started?)"); +} if ($dbus) { require network::net_applet::ifw; network::net_applet::ifw::init(); -- 2.3.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16014
:
6621
| 6722 |
6723