-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
# Copyright (c) Huoty, All rights reserved | ||
# Author: Huoty <[email protected]> | ||
|
||
import os | ||
import sys | ||
import time | ||
import socket | ||
|
@@ -292,6 +293,9 @@ def setup_logging(reset=False, enable_rotate_log=False, | |
logger.addHandler(stream_handler) | ||
|
||
def _add_rotating_file_handler(logfile, level): | ||
if config.APP_LOG_PATH and logfile.startswith(config.APP_LOG_PATH): | ||
if not os.path.exists(config.APP_LOG_PATH): | ||
os.makedirs(config.APP_LOG_PATH, exist_ok=True) | ||
logsize = int(rotate_log_maxsize or (20 * 1024 * 1024)) | ||
backups = int(rotate_log_backups or 10) | ||
file_handler = RotatingFileHandler( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright (c) Huoty, All rights reserved | ||
# Author: Huoty <[email protected]> | ||
|
||
__version__ = '0.1.9' | ||
__version__ = '0.1.10' | ||
|
||
|
||
_VersionInfo = __import__("collections").namedtuple( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@echo off | ||
|
||
sc create dnspx binPath= "D:\dnspx\dnspx.exe --config D:\dnspx\config" start= delayed-auto displayname= dnspx | ||
sc create dnspx binPath= D:\dnspx\dnspx.exe start= delayed-auto displayname= dnspx | ||
|
||
pause | ||
exit |