aboutsummaryrefslogtreecommitdiff
path: root/src/adbd-client.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-15 15:41:55 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-03-15 15:41:55 -0500
commitdf322a475939f3d30e4ff20213df1c01f7ff26d5 (patch)
treeddc88c7c5b09870070c31db7bcbb86eff5bac2c9 /src/adbd-client.cpp
parent4aeb345821bad91430fe9cdb7244c1135051bd92 (diff)
downloadayatana-indicator-display-df322a475939f3d30e4ff20213df1c01f7ff26d5.tar.gz
ayatana-indicator-display-df322a475939f3d30e4ff20213df1c01f7ff26d5.tar.bz2
ayatana-indicator-display-df322a475939f3d30e4ff20213df1c01f7ff26d5.zip
add some debug stubs
Diffstat (limited to 'src/adbd-client.cpp')
-rw-r--r--src/adbd-client.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/adbd-client.cpp b/src/adbd-client.cpp
index 30929a7..4f7d28f 100644
--- a/src/adbd-client.cpp
+++ b/src/adbd-client.cpp
@@ -119,7 +119,7 @@ private:
while (!g_cancellable_is_cancelled(m_cancellable))
{
- g_debug("%s creating a client socket", G_STRLOC);
+ g_debug("%s creating a client socket to '%s'", G_STRLOC, socket_path.c_str());
auto socket = create_client_socket(socket_path);
bool got_valid_req = false;
@@ -179,9 +179,11 @@ private:
}
auto address = g_unix_socket_address_new(socket_path.c_str());
- const auto connected = g_socket_connect(socket, address, m_cancellable, nullptr);
+ const auto connected = g_socket_connect(socket, address, m_cancellable, &error);
g_clear_object(&address);
if (!connected) {
+ g_debug("unable to connect to '%s': %s", socket_path.c_str(), error->message);
+ g_clear_error(&error);
g_clear_object(&socket);
return nullptr;
}