-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
40 lines (30 loc) · 1.05 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# .__ .__ .__ __
# _____| | |__| _____ ___________ ______ ___________|__|______/ |_
# / ___/ | | |/ \_/ __ \_ __ \ / ___// ___\_ __ \ \____ \ __\
# \___ \| |_| | Y Y \ ___/| | \/ \___ \\ \___| | \/ | |_> > |
# /____ >____/__|__|_| /\___ >__| /____ >\___ >__| |__| __/|__|
# \/ \/ \/ \/ \/ |__|
# Author :
# +-+-+-+-+-+-+-+-+-+
# |I|A|m|T|e|r|r|o|r|
# +-+-+-+-+-+-+-+-+-+
# !/usr/bin/python
# -*- coding: utf-8 -*-
from slimer_script import *
from alerts import *
from logger_setup import *
logging.info(SLIMER_SCRIPT_STARTING_MESSAGE)
logger_folder = create_directory(SLIMER_SCRIPT_ROOT_LOGS_PATH)
try:
slimer_script()
logging.info(SLIMER_SCRIPT_ENDING_MESSAGE)
except Exception as e:
logging.error("The program ended unexpectedly !")
logging.error("Error: " + str(e))
logger_script()
# alm = Alerts()
# alm.run_script()
# TODO: os.path ?
# TODO : unit tests
# TODO : exceptions
# TODO : deployment