[Devel] Re: Separate logfile and console loglevel
Igor Sukhih
igor at sw.ru
Tue Dec 5 02:47:08 PST 2006
Kristian F. HЬgh wrote:
> On Thursday den 30. November 2006 14:59, Dmitry Mishin wrote:
>
>> On Wednesday 29 November 2006 20:37, Kristian HЬgh wrote:
>>
>>> Separate logfile and console loglevel
>>> The separation is implemented as follows
>>>
>>> 1: split --quite and --verbose from LOG_LEVEL
>>> console loglevel is 0 as default
>>>
>> This patch make sense.
>>
> I worked on the patch, made --verbose accept argument (--verbose=<int>)
> Added new parameter VERBOSE=<int> to /etc/vz/vz.conf. Default is 1 if unset.
> --verbose alone increments by 1
>
>
>>> 2: Make messages more quiet by default
>>> logger(0,...) -> logger(1, ...)
>>>
>>> 3: Make logfile more verbose by default
>>> LOG_LEVEL=2
>>>
>>>
>> Why do you need them? For me, it is convinient to see at the VE start,
>> which IP it has. It is better, than additional `vzlist` later.
>>
> If I use a script to start 10 VEs, it would be nice to see only partial info.
> I could do that with --verbose=0. If one fails I can use --verbose=2
> What do you think about the output below?
>
I'm Ok with it the only problem the --verbose option already released
and this is can break already worked scripts.
> Regards,
> Kristian HЬgh
>
> Ps.
> vzquota, /etc/vz/dists/scripts/none and vps-net_add/vps-net_del are just "exit 0"
>
They do exit with error in place error happened.
--
Igor.
More information about the Devel
mailing list