feat: fixed a small bug

This commit is contained in:
RTAkland
2021-12-21 20:53:35 +08:00
parent e8b1a910ae
commit 9e3f866fb8
3 changed files with 7 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ import time
level = read_config()[2]['level'] level = read_config()[2]['level']
date_format = '%H:%M:%S' date_format = '%H:%M:%S'
info_format_console = '%(log_color)s[%(asctime)s] |%(filename)s[ %(lineno)-3s] |%(levelname)-8s |%(message)s' info_format_console = '%(log_color)s[%(asctime)s] |%(filename)s[%(lineno)-3s] |%(levelname)-8s |%(message)s'
info_format_file = '[%(asctime)s] |%(filename)s[%(funcName)sline:%(lineno)d] |%(levelname)-8s |%(message)s' info_format_file = '[%(asctime)s] |%(filename)s[%(funcName)sline:%(lineno)d] |%(levelname)-8s |%(message)s'
formatter = ColoredFormatter(fmt=info_format_console, formatter = ColoredFormatter(fmt=info_format_console,
datefmt=date_format, datefmt=date_format,

5
lib/get_host_ip.py Normal file
View File

@@ -0,0 +1,5 @@
# -- coding:utf-8 --
# @Author: markushammered@gmail.com
# @Development Tool: PyCharm
# @Create Time: 2021/12/21
# @File Name: get_host_ip.py

View File

@@ -16,6 +16,7 @@ server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server.bind(('127.0.0.1', 7898)) server.bind(('127.0.0.1', 7898))
server.listen(5) server.listen(5)
Logger.info(f'')
def build_html(): def build_html():