Commit dcfcc373 authored by Guido Gunther's avatar Guido Gunther Committed by Sebastian Krzyszkowiak

torch: Make debug statement more useful

We want to what things changed not only that s.th. happened.
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent e82f9cda
......@@ -87,7 +87,6 @@ on_torch_enabled (PhoshTorchInfo *self, GParamSpec *pspec, PhoshTorchManager *to
{
gboolean enabled;
g_debug ("Updating torch status");
g_return_if_fail (PHOSH_IS_TORCH_INFO (self));
g_return_if_fail (PHOSH_IS_TORCH_MANAGER (torch));
......@@ -96,6 +95,8 @@ on_torch_enabled (PhoshTorchInfo *self, GParamSpec *pspec, PhoshTorchManager *to
return;
self->enabled = enabled;
g_debug ("Updating torch enabled: %d", enabled);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_ENABLED]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment