Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ipaaca
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
Social Cognitive Systems
ipaaca
Commits
fc9ee590
Commit
fc9ee590
authored
5 years ago
by
Hendrik Buschmeier
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a python3-porting mistake.
parent
17fbdf2d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ipaacalib/python/src/ipaaca/util/logger.py
+4
-3
4 additions, 3 deletions
ipaacalib/python/src/ipaaca/util/logger.py
with
4 additions
and
3 deletions
ipaacalib/python/src/ipaaca/util/logger.py
+
4
−
3
View file @
fc9ee590
...
...
@@ -5,7 +5,7 @@
# "Incremental Processing Architecture
# for Artificial Conversational Agents".
#
# Copyright (c) 2009-201
5
Social Cognitive Systems Group
# Copyright (c) 2009-201
9
Social Cognitive Systems Group
# CITEC, Bielefeld University
#
# http://opensource.cit-ec.de/projects/ipaaca/
...
...
@@ -43,6 +43,7 @@ import uuid
import
ipaaca
import
ipaaca.misc
import
six
__all__
=
[
...
...
@@ -124,7 +125,7 @@ def logger_set_log_level(level=LogLevel.DEBUG):
with
LOGGER_LOCK
:
if
level
in
LogLevel
.
_values
:
CURRENT_LOG_LEVEL
=
level
elif
isinstance
(
level
,
base
string
)
and
level
.
upper
()
in
LOG_LEVEL_FROM_STRING_DICT
:
elif
isinstance
(
level
,
six
.
string
_types
)
and
level
.
upper
()
in
LOG_LEVEL_FROM_STRING_DICT
:
CURRENT_LOG_LEVEL
=
LOG_LEVEL_FROM_STRING_DICT
[
level
.
upper
()]
else
:
pass
# leave previous setting untouched
...
...
@@ -153,7 +154,7 @@ def LOG_IPAACA(lvl, text, now=0.0, fn='???', thread='???'):
def
LOG_CONSOLE
(
lvlstr
,
msg
,
fn_markup
=
'
[38;5;142m
'
,
msg_markup
=
''
,
now
=
0.0
,
fn
=
'
???
'
,
thread
=
'
???
'
):
if
isinstance
(
msg
,
base
string
):
if
isinstance
(
msg
,
six
.
string
_types
):
lines
=
msg
.
split
(
'
\n
'
)
else
:
lines
=
[
msg
]
...
...
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