Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Zbigniew Jędrzejewski-Szmek
polkit
Commits
42227b5f
Commit
42227b5f
authored
Aug 23, 2018
by
Jan Rybar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'err-msgs-to-debug' into 'master'
Err msgs to debug See merge request
polkit/polkit!3
parents
c747ce10
8c1bc8ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
src/polkitagent/polkitagentlistener.c
src/polkitagent/polkitagentlistener.c
+6
-6
src/programs/pkttyagent.c
src/programs/pkttyagent.c
+2
-1
No files found.
src/polkitagent/polkitagentlistener.c
View file @
42227b5f
...
...
@@ -178,10 +178,10 @@ on_notify_authority_owner (GObject *object,
owner
=
polkit_authority_get_owner
(
server
->
authority
);
if
(
owner
==
NULL
)
{
g_
printerr
(
"PolicyKit daemon disconnected from the bus.
\n
"
);
g_
debug
(
"PolicyKit daemon disconnected from the bus.
\n
"
);
if
(
server
->
is_registered
)
g_
printerr
(
"We are no longer a registered authentication agent.
\n
"
);
g_
debug
(
"We are no longer a registered authentication agent.
\n
"
);
server
->
is_registered
=
FALSE
;
}
...
...
@@ -192,17 +192,17 @@ on_notify_authority_owner (GObject *object,
{
GError
*
error
;
g_
printerr
(
"PolicyKit daemon reconnected to bus.
\n
"
);
g_
printerr
(
"Attempting to re-register as an authentication agent.
\n
"
);
g_
debug
(
"PolicyKit daemon reconnected to bus.
\n
"
);
g_
debug
(
"Attempting to re-register as an authentication agent.
\n
"
);
error
=
NULL
;
if
(
server_register
(
server
,
&
error
))
{
g_
printerr
(
"We are now a registered authentication agent.
\n
"
);
g_
debug
(
"We are now a registered authentication agent.
\n
"
);
}
else
{
g_
printerr
(
"Failed to register as an authentication agent: %s
\n
"
,
error
->
message
);
g_
debug
(
"Failed to register as an authentication agent: %s
\n
"
,
error
->
message
);
g_error_free
(
error
);
}
}
...
...
src/programs/pkttyagent.c
View file @
42227b5f
...
...
@@ -160,7 +160,8 @@ main (int argc, char *argv[])
authority
=
polkit_authority_get_sync
(
NULL
/* GCancellable* */
,
&
error
);
if
(
authority
==
NULL
)
{
g_printerr
(
"Error getting authority: %s (%s, %d)
\n
"
,
g_printerr
(
"Authorization not available. Check if polkit service is running or see debug message for more information.
\n
"
);
g_debug
(
"Error getting authority: %s (%s, %d)
\n
"
,
error
->
message
,
g_quark_to_string
(
error
->
domain
),
error
->
code
);
g_error_free
(
error
);
ret
=
127
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment