#3 logging and INFO messages

closed-fixed
None
2
2002-07-05
2002-05-27
Anonymous
No

1. emirror man page claims that:
-v --verbose
Verbose output. The default output doesn't contain
any messages except error messages, so usually
using this option is a good idea.

2. command used to start emirror

emirror -c /etc/emirror/general.cfg -d /etc/emirror/active/ -
n /var/www/mirrors

3. Output from emirror does contain messages contrary
to man page and desired and expected behaviour.

27.05.2002 07:12:12.622 INFO program [Start] [ Main ]
ECLiPt Mirroring Tool Version 2.1.21 - starting max. 3
copies
27.05.2002 07:12:13.616 INFO mirror [Start] [ Network
Associates ] Starting mirror
27.05.2002 07:12:14.135 INFO mirror [ConnectFTP] [
Network Associates ] Connecting (FTP): ftp.nai.com
port 21
27.05.2002 07:12:14.156 INFO mirror [ConnectFTP] [
Network Associates ] FTP login: first try (out of 5)

4. The fix I used.
/usr/lib/emirror/log4py.py line 254 change NORMAL to
VERBOSE, ie.
if (self.__Logger_loglevel >= LOGLEVEL_VERBOSE):

Discussion

  • Martin Preishuber

    • priority: 5 --> 2
    • assigned_to: nobody --> preisl
     
  • Martin Preishuber

    Logged In: YES
    user_id=29575

    Hmm, somehow I don't get problem ? Do you think that emirror is
    not verbose enough per default ?

     
  • Nobody/Anonymous

    Logged In: NO

    By default it is more verbose than desired.

    The documentation (point 1) states that it produces no output
    without the -v flag. When I run it without the -v flag it gives me
    INFO level messages. I don't want INFO messages. I only
    want error messages.

     
  • Martin Preishuber

    Logged In: YES
    user_id=29575

    oh I see ... I will check that.

     
  • Martin Preishuber

    • status: open --> closed-fixed
     
  • Martin Preishuber

    Logged In: YES
    user_id=29575

    ok I fixed that ... default only gets errors ... I will probably add a
    --quite for no output

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks