Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
savoirfairelinux
jami-daemon
Commits
fee6f291
Commit
fee6f291
authored
4 months ago
by
François-Simon Fauteux-Chapleau
Browse files
Options
Downloads
Patches
Plain Diff
namedirectory: log error when name lookup fails
Change-Id: I7d7f2050b8af62e277a57e117b25db2707596404
parent
f1207126
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/jamidht/namedirectory.cpp
+6
-4
6 additions, 4 deletions
src/jamidht/namedirectory.cpp
with
6 additions
and
4 deletions
src/jamidht/namedirectory.cpp
+
6
−
4
View file @
fee6f291
...
...
@@ -173,8 +173,8 @@ NameDirectory::lookupAddress(const std::string& addr, LookupCallback cb)
else
cb
(
""
,
Response
::
notFound
);
}
else
if
(
response
.
status_code
!=
200
)
{
JAMI_ERROR
(
"Address lookup for {} failed with code={}"
,
addr
,
response
.
status_code
);
JAMI_ERROR
(
"Address lookup for {}
on {}
failed with code={}"
,
addr
,
serverUrl_
,
response
.
status_code
);
cb
(
""
,
Response
::
error
);
}
else
{
try
{
...
...
@@ -260,9 +260,11 @@ NameDirectory::lookupName(const std::string& n, LookupCallback cb)
const
dht
::
http
::
Response
&
response
)
{
if
(
response
.
status_code
>=
400
&&
response
.
status_code
<
500
)
cb
(
""
,
Response
::
notFound
);
else
if
(
response
.
status_code
<
200
||
response
.
status_code
>
299
)
else
if
(
response
.
status_code
<
200
||
response
.
status_code
>
299
)
{
JAMI_ERROR
(
"Name lookup for {} on {} failed with code={}"
,
name
,
serverUrl_
,
response
.
status_code
);
cb
(
""
,
Response
::
error
);
else
{
}
else
{
try
{
Json
::
Value
json
;
std
::
string
err
;
...
...
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