Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
cbb341206b06
Commit
cbb341206b06
authored
4 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add library to have colored logs
parent
80c8f8a25f42
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NEWS.rst
+2
-0
2 additions, 0 deletions
NEWS.rst
odoo_scripts/parsing.py
+4
-3
4 additions, 3 deletions
odoo_scripts/parsing.py
requirements
+1
-0
1 addition, 0 deletions
requirements
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
8 additions
and
3 deletions
NEWS.rst
+
2
−
0
View file @
cbb34120
...
...
@@ -9,6 +9,8 @@
Fix missing PyYAML dependency.
Colored logs.
4.1
---
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/parsing.py
+
4
−
3
View file @
cbb34120
...
...
@@ -4,6 +4,8 @@
import
logging
from
typing
import
Optional
import
coloredlogs
def
add_verbosity_to_parser
(
parser
:
argparse
.
ArgumentParser
):
parser
.
add_argument
(
...
...
@@ -23,9 +25,8 @@
level
=
logging
.
INFO
else
:
level
=
logging
.
DEBUG
logging
.
basicConfig
(
level
=
level
,
format
=
"
%(asctime)s %(levelname)8s [%(lineno)3d]: %(message)s
"
,
coloredlogs
.
install
(
level
,
fmt
=
"
%(asctime)s %(levelname)8s %(name)s %(message)s
"
)
...
...
This diff is collapsed.
Click to expand it.
requirements
+
1
−
0
View file @
cbb34120
...
...
@@ -3,6 +3,7 @@
requests_toolbelt==0.8.0
python-dateutil>=2.7.0
PyYAML
coloredlogs
docker
psycopg2
mercurial >=5.2
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
cbb34120
...
...
@@ -15,6 +15,7 @@
"
odoorpc==0.7.0
"
,
"
requests_toolbelt==0.8.0
"
,
"
python-dateutil>=2.7.0
"
,
"
coloredlogs
"
,
"
PyYAML
"
,
],
extras_require
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment