← Back to team overview

holland-coredev team mailing list archive

[Bug 782871] Re: Holland command-line reference looks odd (1.1)

 

This was caused by filtering holland's stderr/stdout output through the
logging framework.   This has been fixed here:

https://github.com/holland-
backup/holland/commit/aed4770a581f66bb797d14b3e667c4a71bdd8f75

Now we just emit stdout/stderr normally:

# holland -v
usage: holland [--help] [--config <file>] [--log-level <log-level>] [--debug]
               [--verbose] [--quiet]
               [subcommand] ...

Holland Backup v1.1.0
Copyright (c) 2008-2011 Rackspace US, Inc.
More info available at http://hollandbackup.org

[[[[[[[]]]]]]] [[[[[[[]]]]]]]
[[[[[[[]]]]]]]       [[[[[[[]]]]]]]
[[[[[[[]]]]]]] [[[[[[[]]]]]]]
[[[[[[[]]]]]]] [[[[[[[]]]]]]]

positional arguments:
  subcommand
  args

optional arguments:
  --help, -h
  --config <file>, -c <file>
                        Read configuration from the given file
  --log-level <log-level>, -l <log-level>
                        Specify the log level.
  --debug, -d           Log debug output (alias for --log-level=debug)
  --verbose, -v         Log verbose output (alias for --log-level=info)
  --quiet, -q           Disable all console output.

Available commands:
backup          (bk) Run a backup
help                 Show help for holland commands
list-backups    (lb) List spooled backups
list-commands   (lc) List available holland commands
list-plugins    (lp) List available holland plugins
mk-config       (mc) Generate a configuration file from a plugin
purge                Purge a backup

** Changed in: holland-backup
     Assignee: (unassigned) => Andrew Garner (muzazzi)

** Changed in: holland-backup
    Milestone: None => 1.1.0a2

** Changed in: holland-backup
       Status: New => In Progress

** Changed in: holland-backup
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Holland
Build, which is subscribed to holland-backup.
https://bugs.launchpad.net/bugs/782871

Title:
  Holland command-line reference looks odd (1.1)

Status in Holland Backup Framework:
  Fix Committed

Bug description:
  Holland's available commands list when running 'holland -v' is
  prefixed by timestamps found in the holland.log which looks a bit out
  of place compared to the other Holland command-line options:

  im@HollandBuild:~/git/holland$ holland -v
  2011-05-15 02:51:22,091 [INFO] Failed to open log file: [Errno 2] No such file or directory: u'/var/log/holland/holland.log'
  2011-05-15 02:51:22,091 [INFO] Skipping file logging.
  usage: holland [--help] [--config <file>] [--log-level <log-level>] [--debug]
                 [--verbose] [--quiet]
                 [subcommand] ...

  Holland Backup v1.1.0
  Copyright (c) 2008-2011 Rackspace US, Inc.
  More info available at http://hollandbackup.org

  [[[[[[[]]]]]]] [[[[[[[]]]]]]]
  [[[[[[[]]]]]]]       [[[[[[[]]]]]]]
  [[[[[[[]]]]]]] [[[[[[[]]]]]]]
  [[[[[[[]]]]]]] [[[[[[[]]]]]]]

  positional arguments:
    subcommand
    args

  optional arguments:
    --help, -h
    --config <file>, -c <file>
                          Read configuration from the given file
    --log-level <log-level>, -l <log-level>
                          Specify the log level.
    --debug, -d           Log debug output (alias for --log-level=debug)
    --verbose, -v         Log verbose output (alias for --log-level=info)
    --quiet, -q           Disable all output. (alias for --log-level=none)
  2011-05-15 02:51:22,103 [INFO] 
  2011-05-15 02:51:22,103 [INFO] Available commands:
  2011-05-15 02:51:22,104 [INFO] backup          (bk) Run a backup
  2011-05-15 02:51:22,104 [INFO] help                 Show help for holland commands
  2011-05-15 02:51:22,104 [INFO] list-backups    (lb) List spooled backups
  2011-05-15 02:51:22,104 [INFO] list-commands   (lc) List available holland commands
  2011-05-15 02:51:22,104 [INFO] list-plugins    (lp) List available holland plugins
  2011-05-15 02:51:22,104 [INFO] mk-config       (mc) Generate a configuration file from a plugin
  2011-05-15 02:51:22,104 [INFO] purge                Purge a backup


References