Revision cfcc79c6 lib/watcher/__init__.py
b/lib/watcher/__init__.py | ||
---|---|---|
32 | 32 |
# C0103: Invalid name ganeti-watcher |
33 | 33 |
|
34 | 34 |
import os |
35 |
import os.path |
|
35 | 36 |
import sys |
36 | 37 |
import time |
37 | 38 |
import logging |
... | ... | |
714 | 715 |
print >> sys.stderr, ("Usage: %s [-f] " % sys.argv[0]) |
715 | 716 |
return constants.EXIT_FAILURE |
716 | 717 |
|
717 |
utils.SetupLogging(constants.LOG_WATCHER, debug=options.debug,
|
|
718 |
stderr_logging=options.debug) |
|
718 |
utils.SetupLogging(constants.LOG_WATCHER, sys.argv[0],
|
|
719 |
debug=options.debug, stderr_logging=options.debug)
|
|
719 | 720 |
|
720 | 721 |
if ShouldPause() and not options.ignore_pause: |
721 | 722 |
logging.debug("Pause has been set, exiting") |
Also available in: Unified diff