check_ovhcloud/lib/__init__.py
Julien Riou c80e22482e
Add check_voip
Signed-off-by: Julien Riou <julien@riou.xyz>
2023-09-21 18:27:13 +02:00

13 lines
304 B
Python

import logging
import os
def show_version():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "VERSION"), "r"
) as fd:
print(fd.read().strip())
def setup_logging(args):
logging.basicConfig(format="%(levelname)s: %(message)s", level=args.loglevel)