Add check_voip

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2023-09-21 18:19:47 +02:00
parent cd55d2f061
commit c80e22482e
No known key found for this signature in database
GPG key ID: A2EB1F2CA8E3F677
7 changed files with 215 additions and 0 deletions

13
lib/__init__.py Normal file
View file

@ -0,0 +1,13 @@
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)