Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Trèfle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open source
Trèfle
Commits
104f87e3
Commit
104f87e3
authored
Sep 02, 2019
by
David Foucher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gunicorn-log' into 'master'
simplify trefle log See merge request ybon/trefle!162
parents
f2401ea7
11a7c9d6
Pipeline
#2899
failed with stage
in 1 minute and 48 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
setup.py
setup.py
+1
-1
trefle/config/__init__.py
trefle/config/__init__.py
+0
-1
trefle/loggers.py
trefle/loggers.py
+1
-4
No files found.
setup.py
View file @
104f87e3
...
...
@@ -9,7 +9,7 @@ def is_pkg(line):
with
Path
(
"requirements.txt"
).
open
()
as
reqs
:
install_requires
=
[
l
for
l
in
reqs
.
read
().
split
(
"
\n
"
)
if
is_pkg
(
l
)]
VERSION
=
(
0
,
7
,
1
3
)
VERSION
=
(
0
,
7
,
1
4
)
__author__
=
"Yohan Boniface"
__contact__
=
"yohan.boniface@data.gouv.fr"
...
...
trefle/config/__init__.py
View file @
104f87e3
...
...
@@ -136,7 +136,6 @@ class Financement(SmartDict):
"remuneration_texte"
,
"prise_en_charge_texte"
,
]:
print
(
self
)
setattr
(
self
,
key
,
(
getattr
(
self
,
key
)
or
""
).
format
(
**
self
))
...
...
trefle/loggers.py
View file @
104f87e3
from
datetime
import
datetime
import
logging
import
logging.handlers
import
os
import
ujson
as
json
...
...
@@ -14,13 +13,11 @@ logger.addHandler(logging.StreamHandler())
request_logger
=
logging
.
getLogger
(
"request_logger"
)
request_logger
.
setLevel
(
logging
.
INFO
)
request_logger
.
addHandler
(
logging
.
handlers
.
TimedRotating
FileHandler
(
logging
.
FileHandler
(
os
.
path
.
join
(
os
.
environ
.
get
(
"TREFLE_LOG_DIR"
,
"/tmp"
),
"trefle-simulate.log"
,
),
when
=
"D"
,
backupCount
=
365
,
)
)
...
...
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