Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
8ab57100
Commit
8ab57100
authored
Aug 26, 2020
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated testresuts Windows
parent
61d628d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3417 additions
and
4 deletions
+3417
-4
logger.py
cps/logger.py
+4
-4
Calibre-Web TestSummary_Windows.html
test/Calibre-Web TestSummary_Windows.html
+3413
-0
No files found.
cps/logger.py
View file @
8ab57100
...
...
@@ -126,11 +126,11 @@ def setup(log_file, log_level=None):
file_handler
.
baseFilename
=
log_file
else
:
try
:
file_handler
=
RotatingFileHandler
(
log_file
,
maxBytes
=
50000
,
backupCount
=
2
)
file_handler
=
RotatingFileHandler
(
log_file
,
maxBytes
=
50000
,
backupCount
=
2
,
encoding
=
'utf-8'
)
except
IOError
:
if
log_file
==
DEFAULT_LOG_FILE
:
raise
file_handler
=
RotatingFileHandler
(
DEFAULT_LOG_FILE
,
maxBytes
=
50000
,
backupCount
=
2
)
file_handler
=
RotatingFileHandler
(
DEFAULT_LOG_FILE
,
maxBytes
=
50000
,
backupCount
=
2
,
encoding
=
'utf-8'
)
log_file
=
""
file_handler
.
setFormatter
(
FORMATTER
)
...
...
@@ -152,11 +152,11 @@ def create_access_log(log_file, log_name, formatter):
access_log
.
propagate
=
False
access_log
.
setLevel
(
logging
.
INFO
)
try
:
file_handler
=
RotatingFileHandler
(
log_file
,
maxBytes
=
50000
,
backupCount
=
2
)
file_handler
=
RotatingFileHandler
(
log_file
,
maxBytes
=
50000
,
backupCount
=
2
,
encoding
=
'utf-8'
)
except
IOError
:
if
log_file
==
DEFAULT_ACCESS_LOG
:
raise
file_handler
=
RotatingFileHandler
(
DEFAULT_ACCESS_LOG
,
maxBytes
=
50000
,
backupCount
=
2
)
file_handler
=
RotatingFileHandler
(
DEFAULT_ACCESS_LOG
,
maxBytes
=
50000
,
backupCount
=
2
,
encoding
=
'utf-8'
)
log_file
=
""
file_handler
.
setFormatter
(
formatter
)
...
...
test/Calibre-Web TestSummary_Windows.html
0 → 100644
View file @
8ab57100
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment