24 lines
613 B
Python
24 lines
613 B
Python
from utils import *
|
|
from main_func import main_func
|
|
import time
|
|
|
|
data = {
|
|
'page': 'testing',
|
|
'site': 'test_work',
|
|
'data': (1, 23, 'vok1no', (1, 2, 3))
|
|
}
|
|
r = main_func.create_log(data)
|
|
d = main_func.get_settings()
|
|
print(d)
|
|
print(r)
|
|
c = main_func.get_setting('debug_log_type')
|
|
print(c)
|
|
if c == 1:
|
|
logger.info(f'DEBUG_LOG_TYPE -> {c} | Включение режима!')
|
|
interval = 2 # интервал в секундах
|
|
while True:
|
|
print(f"DEBUG_LOG: Сейчас {time.ctime()}")
|
|
time.sleep(2)
|
|
else:
|
|
logger.info(f'DEBUG_LOG_TYPE -> {c} | Без включения!')
|