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
Show more breadcrumbs
Social Cognitive Systems
ipaaca
Commits
d96d51e2
Commit
d96d51e2
authored
9 years ago
by
Hendrik Buschmeier
Browse files
Options
Downloads
Patches
Plain Diff
Catch exceptions occuring during ipaaca-log-message sending.
parent
6577bbcc
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
ipaacalib/python/src/ipaaca/util/logger.py
+7
-1
7 additions, 1 deletion
ipaacalib/python/src/ipaaca/util/logger.py
with
7 additions
and
1 deletion
ipaacalib/python/src/ipaaca/util/logger.py
+
7
−
1
View file @
d96d51e2
...
...
@@ -46,6 +46,7 @@ import ipaaca
__all__
=
[
'
logger_send_ipaaca_logs
'
,
'
logger_set_log_filename
'
,
'
logger_set_module_name
'
,
'
LOG_DEBUG
'
,
'
LOG_INFO
'
,
...
...
@@ -113,7 +114,12 @@ def LOG_IPAACA(lvl, text, now=0.0, fn='???', thread='???'):
'
thread
'
:
thread
,
'
uuid
'
:
uid
,
'
text
'
:
text
,}
OUTPUT_BUFFER
.
add
(
msg
)
try
:
OUTPUT_BUFFER
.
add
(
msg
)
except
Exception
,
e
:
LOG_ERROR
(
'
Caught an exception while logging via ipaaca.
'
+
'
str(e);
'
+
traceback
.
format_exc
())
def
LOG_CONSOLE
(
lvlstr
,
msg
,
fn_markup
=
'
[38;5;142m
'
,
msg_markup
=
''
,
now
=
0.0
,
fn
=
'
???
'
,
thread
=
'
???
'
):
...
...
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