Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
logger-36
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DEBREUVE Eric
logger-36
Commits
d1717408
Commit
d1717408
authored
2 years ago
by
DEBREUVE Eric
Browse files
Options
Downloads
Patches
Plain Diff
non-str values directly loggable
parent
6b456ecd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
logger_36/main.py
+5
-2
5 additions, 2 deletions
logger_36/main.py
logger_36/version.py
+1
-1
1 addition, 1 deletion
logger_36/version.py
with
6 additions
and
3 deletions
logger_36/main.py
+
5
−
2
View file @
d1717408
...
...
@@ -107,8 +107,11 @@ class _handler_extension:
def
FormattedMessage
(
self
,
record
:
lggg
.
LogRecord
,
/
)
->
tuple
[
str
,
list
[
str
]
|
None
]:
""""""
# "message" is not yet an attribute of record (it will be set by format()); Use "msg" instead.
"""
Note:
"
message
"
is not yet an attribute of record (it will be set by format()); Use
"
msg
"
instead.
"""
if
not
isinstance
(
record
.
msg
,
str
):
record
.
msg
=
str
(
record
.
msg
)
if
"
\n
"
in
record
.
msg
:
original_message
=
record
.
msg
lines
=
original_message
.
splitlines
()
...
...
This diff is collapsed.
Click to expand it.
logger_36/version.py
+
1
−
1
View file @
d1717408
...
...
@@ -29,4 +29,4 @@
# The fact that you are presently reading this means that you have had
# knowledge of the CeCILL license and that you accept its terms.
__version__
=
"
2023.
5
"
__version__
=
"
2023.
6
"
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