[Spice-devel] [PATCH] Set default syslog mask to a lower level

Snir Sheriber ssheribe at redhat.com
Thu Jun 28 08:47:15 UTC 2018


This will allow printing run-time information to stderr (by using
LOG_NOTICE level) without classifying it as warning/error or by
enabling debug mode.
---
 src/spice-streaming-agent.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This follows a suggestion to print run-time informative logs coming from
the gst-plugin using syslog instead of printing it directly to stdout.


diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index 67679ac..2625211 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -435,7 +435,7 @@ int main(int argc, char* argv[])
     openlog("spice-streaming-agent",
             isatty(fileno(stderr)) ? (LOG_PERROR|LOG_PID) : LOG_PID, LOG_USER);
 
-    setlogmask(LOG_UPTO(LOG_WARNING));
+    setlogmask(LOG_UPTO(LOG_NOTICE));
 
     while ((opt = getopt_long(argc, argv, "hp:c:l:d", long_options, NULL)) != -1) {
         switch (opt) {
-- 
2.17.0



More information about the Spice-devel mailing list