linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Log actions releated to /etc/dev.d scripts
@ 2004-10-15 12:58 Jesse Stockall
  2004-10-15 17:06 ` Kay Sievers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jesse Stockall @ 2004-10-15 12:58 UTC (permalink / raw)
  To: linux-hotplug

Hi

I was trying to debug a script from /etc/dev.d and found that nothing is
logged, even when logging is enabled in udev.conf. This little patch
makes is a heck of a lot easier to see what is going on.

--- udev-038/dev_d.c-orig	2004-10-14 15:26:53.517860168 -0400
+++ udev-038/dev_d.c	2004-10-14 15:27:05.758999232 -0400
@@ -41,7 +41,7 @@
 	int fd;
 	char *argv[3];
 
-	dbg("running %s", name);
+	info("running %s", name);
 
 	pid = fork();
 	switch (pid) {

Jesse




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Log actions releated to /etc/dev.d scripts
  2004-10-15 12:58 Log actions releated to /etc/dev.d scripts Jesse Stockall
@ 2004-10-15 17:06 ` Kay Sievers
  2004-10-15 17:26 ` Jesse Stockall
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2004-10-15 17:06 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Oct 15, 2004 at 08:58:40AM -0400, Jesse Stockall wrote:
> Hi
> 
> I was trying to debug a script from /etc/dev.d and found that nothing is
> logged, even when logging is enabled in udev.conf. This little patch
> makes is a heck of a lot easier to see what is going on.
> 
> --- udev-038/dev_d.c-orig	2004-10-14 15:26:53.517860168 -0400
> +++ udev-038/dev_d.c	2004-10-14 15:27:05.758999232 -0400
> @@ -41,7 +41,7 @@
>  	int fd;
>  	char *argv[3];
>  
> -	dbg("running %s", name);
> +	info("running %s", name);
>  
>  	pid = fork();
>  	switch (pid) {

Just compile udev with "make DEBUG=true" and you will get all these in
your syslog. We really don't want this kind of debug for normal users.

Kay


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Log actions releated to /etc/dev.d scripts
  2004-10-15 12:58 Log actions releated to /etc/dev.d scripts Jesse Stockall
  2004-10-15 17:06 ` Kay Sievers
@ 2004-10-15 17:26 ` Jesse Stockall
  2004-10-15 17:54 ` Kay Sievers
  2004-10-15 18:11 ` Jesse Stockall
  3 siblings, 0 replies; 5+ messages in thread
From: Jesse Stockall @ 2004-10-15 17:26 UTC (permalink / raw)
  To: linux-hotplug

On Fri, 2004-10-15 at 13:06, Kay Sievers wrote:
> Just compile udev with "make DEBUG=true" and you will get all these in
> your syslog. We really don't want this kind of debug for normal users.
> 

Enabling debug is not a problem if you are doing development, but is a
bit of a pain for an admin or a "normal user". 

What is the rational behind having some udev actions logged, such as
what rule is used for the naming, but not others like what dev.d script
is being run? Since logging is turned off by default, this doesn't
clutter anyones logs.

Jesse



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Log actions releated to /etc/dev.d scripts
  2004-10-15 12:58 Log actions releated to /etc/dev.d scripts Jesse Stockall
  2004-10-15 17:06 ` Kay Sievers
  2004-10-15 17:26 ` Jesse Stockall
@ 2004-10-15 17:54 ` Kay Sievers
  2004-10-15 18:11 ` Jesse Stockall
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2004-10-15 17:54 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Oct 15, 2004 at 01:26:45PM -0400, Jesse Stockall wrote:
> On Fri, 2004-10-15 at 13:06, Kay Sievers wrote:
> > Just compile udev with "make DEBUG=true" and you will get all these in
> > your syslog. We really don't want this kind of debug for normal users.
> > 
> 
> Enabling debug is not a problem if you are doing development, but is a
> bit of a pain for an admin or a "normal user". 
> 
> What is the rational behind having some udev actions logged, such as
> what rule is used for the naming, but not others like what dev.d script
> is being run? Since logging is turned off by default, this doesn't
> clutter anyones logs.

Maybe it is disabled on your distribution, no on mine.

The logged messages are the absolute minimum. Everything else is
"development debug" only.

If it's really needed we may introduce a debug-level value in the
config instead of the debug-switch, but that will increase the size
of the udev binary.

Thaks,
Kay


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Log actions releated to /etc/dev.d scripts
  2004-10-15 12:58 Log actions releated to /etc/dev.d scripts Jesse Stockall
                   ` (2 preceding siblings ...)
  2004-10-15 17:54 ` Kay Sievers
@ 2004-10-15 18:11 ` Jesse Stockall
  3 siblings, 0 replies; 5+ messages in thread
From: Jesse Stockall @ 2004-10-15 18:11 UTC (permalink / raw)
  To: linux-hotplug

On Fri, 2004-10-15 at 13:54, Kay Sievers wrote:
> 
> Maybe it is disabled on your distribution, no on mine.
> 

Right, both Gentoo and Debian have it disabled, so I assumed that most
others did too.

> The logged messages are the absolute minimum. Everything else is
> "development debug" only.
> 
> If it's really needed we may introduce a debug-level value in the
> config instead of the debug-switch, but that will increase the size
> of the udev binary.
> 

Well increasing the size isn't really a good thing, but I can foresee a
need for this type of information to be available to users as the
distros move to udev and the /etc/dev.d scripts. However perhaps this
can wait till others start clamouring for it.

Jesse



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-15 18:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 12:58 Log actions releated to /etc/dev.d scripts Jesse Stockall
2004-10-15 17:06 ` Kay Sievers
2004-10-15 17:26 ` Jesse Stockall
2004-10-15 17:54 ` Kay Sievers
2004-10-15 18:11 ` Jesse Stockall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).