Re: Unable to find/generate any rygel log file
On 4/29/2020 5:31 PM, Jens Georg wrote: Thanks! That worked. Perhaps a comment should be added to the sample rygel.conf and/or rygel manpage to mention this? The existing documents It's already in the manpage of rygel.conf in the description of log- level: Ah, I missed that. At least in the Ubuntu package, /etc/rygel.conf doesn't have that info, and it appears not to be in rygel.conf from github either. Could add a comment line in the rygel.conf as well? lead the user to think -g/--log-level and the rygel.conf setting will be effective without having to also set an environmental variable. I realize now that the RYGEL_LOGFILE environmental variable is intended to be used in the start-stop-daemon context for redirecting stdout/stderr, but perhaps this could be explained in rygel documentation as well. I don't even know where that would be coming from, definitely not upstream. I believe I found it here, on the Gentoo Wiki https://wiki.gentoo.org/wiki/Rygel Adam ___ rygel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/rygel-list
Re: Unable to find/generate any rygel log file
Hi, > Thanks! That worked. Perhaps a comment should be added to the sample > rygel.conf and/or rygel manpage to mention this? The existing > documents It's already in the manpage of rygel.conf in the description of log- level: log-level=DOMAIN:LEVEL[,DOMAIN:LEVEL,...] Comma-separated list of DOMAIN:LEVEL pairs, allowing to set the log level individually for each domain, where DOMAIN is eiher "*", "rygel" or the name of a plugin. Allowed log levels are 1=error, 2=critical, 3=warning, 4=message/info, 5=debug. Note that on recent versions of GLib (>= 2.36) it is required to set the environment variable G_MESSAGES_DEBUG to all to get any debug output. > lead the user to think -g/--log-level and the rygel.conf setting will > be > effective without having to also set an environmental variable. > > I realize now that the RYGEL_LOGFILE environmental variable is > intended > to be used in the start-stop-daemon context for redirecting > stdout/stderr, but perhaps this could be explained in rygel > documentation as well. I don't even know where that would be coming from, definitely not upstream. ___ rygel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/rygel-list
Re: Unable to find/generate any rygel log file
On 4/29/2020 4:56 PM, Jens Georg wrote: For debug messages to show up, you need to additionally set G_MESSAGES_DEBUG=all as an environment variable. There is no support for loggging to files, so something like rygel -g *:5 2>&1 | tee rygel.log Thanks! That worked. Perhaps a comment should be added to the sample rygel.conf and/or rygel manpage to mention this? The existing documents lead the user to think -g/--log-level and the rygel.conf setting will be effective without having to also set an environmental variable. I realize now that the RYGEL_LOGFILE environmental variable is intended to be used in the start-stop-daemon context for redirecting stdout/stderr, but perhaps this could be explained in rygel documentation as well. Adam ___ rygel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/rygel-list
Re: Unable to find/generate any rygel log file
For debug messages to show up, you need to additionally set G_MESSAGES_DEBUG=all as an environment variable. There is no support for loggging to files, so something like rygel -g *:5 2>&1 | tee rygel.log is the way to go. There should be some messages, though: ./build/src/rygel/rygel Rygel-Message: 22:46:29.977: Rygel v0.39.0 starting… RygelCore-Message: 22:46:31.253: New plugin “Playbin” available RygelCore-Message: 22:46:31.271: New plugin “MediaExport” available MxExtract-Message: 22:46:35.207: rygel-media-export-extract.vala:180: Started with descriptors 3 (in) 4 (out) (mx-extract:36667): GLib-CRITICAL **: 22:46:35.221: Failed to set scheduler settings: Operation not permitted MediaExport-Message: 22:46:35.282: “file:///home/jens/Videos” harvested MediaExport-Message: 22:46:35.320: rygel-media-export-harvesting- task.vala:309: Harvesting of file:///home/jens/Videos done in 0,177 > Running rygel 0.38.1 from Ubuntu Eoan. I'm unable to get any logging; > wondering what I'm missing. > > I'm running rygel under a user account and have my configuration in > ~/.config/rygel.conf. rygel is using this configuration file, as when > I change the name of the server in rygel.conf, it shows up as such on > my networ> > > I have log-level=*:5 in my configuration file in the [general] > section. > > I am also invoking rygel with -g 5 > > I've set the environmental variable RYGEL_LOGFILE to a file/folder my > user can write to -- it is set to /home/user/rygel.log > > I have also tried capturing the output of the rygel command into a > logfile (both stdout and stderr). > > In none of these circumstances do I see any log messages when rygel > is active (e.g., indexing, streaming content, etc.) > > What am I missing? > ___ > rygel-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/rygel-list ___ rygel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/rygel-list
