<div dir="ltr"><div>Hello Michael,</div><div><br></div><div>Thanks for the patch! I'm not sure it's really safe to write out about every loaded script though, because that will flood the journal with tens of messages on every polkit event. The parsers log every error during loading the files and I believe there are not that many .rules files to have trouble listing their directories. Right?  <br></div><div>I'm sure we can think up an ideal (or at least sufficient) solution. What I'm thinking about is passing the --no-debug switch to duktapeauthority.c and listing the loaded rules only in debug mode. Would that be ok?</div><div><br></div><div>Cheers,</div><div>Jan<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 20, 2023 at 10:44 AM Michael Trapp <<a href="mailto:michael.trapp@sap.com">michael.trapp@sap.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Log each successfully loaded rule file. At the moment there is only<br>
a summary message wich does not include any further information<br>
about the loaded files.<br>
---<br>
 src/polkitbackend/polkitbackendjsauthority.cpp | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp<br>
index 004748a..9373bf5 100644<br>
--- a/src/polkitbackend/polkitbackendjsauthority.cpp<br>
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp<br>
@@ -240,6 +240,9 @@ load_scripts (PolkitBackendJsAuthority  *authority)<br>
         }<br>
<br>
       //g_print ("Successfully loaded and evaluated script `%s'\n", filename);<br>
+      polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),<br>
+                                    "Successfully loaded and evaluated script %s",<br>
+                                    filename);<br>
<br>
       num_scripts++;<br>
     }<br>
-- <br>
2.39.2 (Apple Git-143)<br>
<br>
</blockquote></div>