OpenVZ Forum


Home » Mailing lists » Devel » [PATCH, try3, 0/3] Separate logfile and console loglevel
Re: [PATCH, try3, 0/3] Separate logfile and console loglevel [message #8850 is a reply to message #8848] Thu, 07 December 2006 17:43 Go to previous message
kfh.openvzmail is currently offline  kfh.openvzmail
Messages: 20
Registered: October 2006
Junior Member
On Thursday 07 December 2006 17:09, Igor Sukhih wrote:
> Kristian H?gh wrote:
> > On Thursday 07 December 2006 14:23, Kir Kolyshkin wrote:
> >> Dmitry Mishin wrote:
> >>> On Thursday 07 December 2006 15:47, Igor Sukhih wrote:
> >>>> Kir Kolyshkin wrote:
> >>>>> Kristian F. Høgh wrote:
> >>>>>> If I type "vzctl set 1001 ...", I would asume everything went OK,
> >>>>>> if I get no output.
> >>>>>
> >>>>> Agreed, this is true UNIX way :)
> >>>>
> >>>> Lets do not display any info messages by default, go by UNIX way :)
> >
> > Thats not what the patches do.
> > If VERBOSE=0 a start will generate 3-5lines of code. (Down from 10)
> > If VERBOSE=-1 it will be quiet.
> > If VERBOSE=1 a start will generate the same as today
> > (Except "Running script...")
> >
> >>> Probably, global poll helps? ;)
> >>>
> >>> I think, the default console level is secondary question indeed.
> >
> > Incrementing logger(..) and LOG_LEVEL, will not touch default output.
> > And will give option for VERBOSE=0 or --verbose=0
> >
> >>> Split of console level and log level is usefull. So, my opinion is to
> >>> leave default level AS IS, because somebody may use this output
> >>> somewhere in his scripts (it's bad, but who knows these users? ;) ).
> >>> Kristian may intro alias in his shell in order to decrease level to `no
> >>> output` value.
> >
> > An option. It stille requires some logger(0, ...) -> logger(1, ...),
> > as I don't want "no output" but more quiet output.
>
> Please describe NEW logger policy, how I will decide that log level
> should be used for messages to be still quiet for you?
I don't know. Today I see the value 10 some places...

I just think level 0 is used too much.
Split level 0 to 0 and 1 (Make default 1)
1 is fine as 2
2 is fine as 3
All above 3 -> 3

-1 Error
0. Important/overwiev/no values (mounting, setting limits, starting up ...)
1. Info (Memory/CPU values)
2. verbose (Quota values, script names, mount point name)
3. debug (Ignored parameter, open tty, set iptables mask)

> --
> Igor.
/Kristian.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH 5/12] L2 network namespace: IPv4 routing
Next Topic: [PATCH try4, 1/3] split verbose from LOG_LEVEL
Goto Forum:
  


Current Time: Mon Sep 08 11:57:24 GMT 2025

Total time taken to generate the page: 0.08159 seconds