Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
3c2350cb
Commit
3c2350cb
authored
Mar 23, 2019
by
kaniini
Browse files
object: downgrade normalize warning to debug severity
parent
8c701561
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/object.ex
View file @
3c2350cb
...
...
@@ -47,18 +47,22 @@ def normalize(%Activity{object: %Object{} = object}), do: object
# Catch and log Object.normalize() calls where the Activity's child object is not
# preloaded.
def
normalize
(%
Activity
{
data:
%{
"object"
=>
%{
"id"
=>
ap_id
}}})
do
Logger
.
info
(
Logger
.
debug
(
"Object.normalize() called without preloaded object (
#{
ap_id
}
). Consider preloading the object!"
)
Logger
.
debug
(
"Backtrace:
#{
inspect
(
Process
.
info
(
:erlang
.
self
(),
:current_stacktrace
))
}
"
)
normalize
(
ap_id
)
end
def
normalize
(%
Activity
{
data:
%{
"object"
=>
ap_id
}})
do
Logger
.
info
(
Logger
.
debug
(
"Object.normalize() called without preloaded object (
#{
ap_id
}
). Consider preloading the object!"
)
Logger
.
debug
(
"Backtrace:
#{
inspect
(
Process
.
info
(
:erlang
.
self
(),
:current_stacktrace
))
}
"
)
normalize
(
ap_id
)
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment