docker.py
This commit is contained in:
parent
4c019eef61
commit
2030c9d1a1
14
docker.py
14
docker.py
@ -1,20 +1,12 @@
|
|||||||
import datetime
|
|
||||||
import os
|
import os
|
||||||
import logging
|
|
||||||
import signal
|
|
||||||
import time
|
import time
|
||||||
#from settings import *
|
import signal
|
||||||
|
import datetime
|
||||||
|
from loghelper import log
|
||||||
|
|
||||||
from crontab import CronTab
|
from crontab import CronTab
|
||||||
|
|
||||||
time_format = "%Y-%m-%d %H:%M:%S"
|
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):
|
def stop_me(_signo, _stack):
|
||||||
log.info("Docker container has stoped....")
|
log.info("Docker container has stoped....")
|
||||||
|
Loading…
Reference in New Issue
Block a user