From 2030c9d1a167b4290f2ed19fb943b4506b1ebca3 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Wed, 20 Apr 2022 13:05:11 +0800 Subject: [PATCH] docker.py --- docker.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/docker.py b/docker.py index 28b2ea1..940a531 100644 --- a/docker.py +++ b/docker.py @@ -1,20 +1,12 @@ -import datetime import os -import logging -import signal import time -#from settings import * +import signal +import datetime +from loghelper import log from crontab import CronTab time_format = "%Y-%m-%d %H:%M:%S" -logging.basicConfig( - level=logging.INFO, - format='%(asctime)s %(levelname)s %(message)s', - datefmt='%Y-%m-%dT%H:%M:%S') - - -log = logging def stop_me(_signo, _stack): log.info("Docker container has stoped....")