Factorize logging setup in tools
Most tools had their own “SetupLogging” function, but they were all essentially the same. This patch adds a generic version to “utils.log” and provides unit tests. Signed-off-by:Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
Showing
- lib/tools/ensure_dirs.py 1 addition, 21 deletionslib/tools/ensure_dirs.py
- lib/tools/prepare_node_join.py 1 addition, 21 deletionslib/tools/prepare_node_join.py
- lib/utils/log.py 46 additions, 0 deletionslib/utils/log.py
- test/ganeti.utils.log_unittest.py 68 additions, 0 deletionstest/ganeti.utils.log_unittest.py
- tools/cluster-merge 1 addition, 23 deletionstools/cluster-merge
- tools/move-instance 1 addition, 28 deletionstools/move-instance
- tools/ovfconverter 4 additions, 24 deletionstools/ovfconverter
Loading
Please register or sign in to comment