docker.py

This commit is contained in:
Womsxd 2022-04-20 13:05:11 +08:00
parent 4c019eef61
commit 2030c9d1a1
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68

View File

@ -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....")