Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
8a3a776b
Commit
8a3a776b
authored
16 years ago
by
Stéphane Wirtel
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] Don't use the color if we use the logfile as logger
bzr revid: stephane@tinyerp.com-20090130153101-94qlxou5fq8bcp0t
parent
5e0e5369
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/netsvc.py
+1
-1
1 addition, 1 deletion
bin/netsvc.py
with
1 addition
and
1 deletion
bin/netsvc.py
+
1
−
1
View file @
8a3a776b
...
...
@@ -127,7 +127,7 @@ def init_logger():
logger
.
addHandler
(
handler
)
logger
.
setLevel
(
tools
.
config
[
'
log_level
'
]
or
'
0
'
)
if
isinstance
(
handler
,
logging
.
StreamHandler
)
and
os
.
name
!=
'
nt
'
:
if
handler
is
logging
.
StreamHandler
and
os
.
name
!=
'
nt
'
:
# change color of level names
# uses of ANSI color codes
# see http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html
...
...
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