""" Check for scheduled backupninja actions and run them when needed """
import optparse
+import logging
import sys
+from backupninja.log import setup_logging
+
+log = logging.getLogger()
+
def make_option_parser():
description = """%prog checks for scheduled actions and runs them when needed."""
parser = optparse.OptionParser(description=description)
parser = make_option_parser()
(options, args) = parser.parse_args(argv)
+ # Setup logging
+ setup_logging(options)
+
# Load config file
# Process command
parser.print_help()