Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-client
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-client
Commits
1b752f98
Commit
1b752f98
authored
4 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[-] Cleaned some logs
parent
e1e44eac
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dap_client_http.c
+7
-7
7 additions, 7 deletions
src/dap_client_http.c
src/dap_client_pvt.c
+1
-1
1 addition, 1 deletion
src/dap_client_pvt.c
with
8 additions
and
8 deletions
src/dap_client_http.c
+
7
−
7
View file @
1b752f98
...
...
@@ -79,7 +79,7 @@ typedef struct dap_http_client_internal {
*/
static
void
s_http_new
(
dap_events_socket_t
*
a_es
,
void
*
arg
)
{
log_it
(
L_DEBUG
,
"
s_http_new
"
);
log_it
(
L_DEBUG
,
"
HTTP client connected
"
);
dap_client_http_internal_t
*
l_client_http_internal
=
DAP_CLIENT_HTTP
(
a_es
);
if
(
!
l_client_http_internal
)
{
log_it
(
L_ERROR
,
"s_http_new: l_client_http_internal is NULL!"
);
...
...
@@ -99,7 +99,7 @@ static void s_http_new(dap_events_socket_t * a_es, void * arg)
*/
static
void
s_http_write
(
dap_events_socket_t
*
a_es
,
void
*
arg
)
{
log_it
(
L_DEBUG
,
"s_http_write "
);
//
log_it(L_DEBUG, "s_http_write ");
// dap_client_http_internal_t * l_client_http_internal = DAP_CLIENT_HTTP(a_es);
// if(!l_client_internal) {
// log_it(L_ERROR, "s_http_write: l_client_http_internal is NULL!");
...
...
@@ -117,7 +117,7 @@ static void s_http_write(dap_events_socket_t * a_es, void * arg)
*/
static
void
s_http_read
(
dap_events_socket_t
*
a_es
,
void
*
arg
)
{
log_it
(
L_DEBUG
,
"s_http_read "
);
//
log_it(L_DEBUG, "s_http_read ");
dap_client_http_internal_t
*
l_client_http_internal
=
DAP_CLIENT_HTTP
(
a_es
);
if
(
!
l_client_http_internal
)
{
log_it
(
L_ERROR
,
"s_http_read: l_client_http_internal is NULL!"
);
...
...
@@ -217,7 +217,7 @@ static void s_http_read(dap_events_socket_t * a_es, void * arg)
*/
static
void
s_http_error
(
dap_events_socket_t
*
a_es
,
void
*
arg
)
{
log_it
(
L_
DEBUG
,
"
s_
http
_
error
"
);
log_it
(
L_
INFO
,
"http
client
error"
);
int
l_err_code
=
-
1
;
dap_client_http_internal_t
*
l_client_http_internal
=
DAP_CLIENT_HTTP
(
a_es
);
if
(
!
l_client_http_internal
)
{
...
...
@@ -243,7 +243,7 @@ static void s_http_error(dap_events_socket_t * a_es, void * arg)
static
void
s_http_delete
(
dap_events_socket_t
*
a_es
,
void
*
arg
)
{
// call from dap_events_socket_delete(ev_socket, true);
log_it
(
L_DEBUG
,
"
s_http_dele
te
"
);
log_it
(
L_DEBUG
,
"
HTTP client disconnec
te
d
"
);
dap_client_http_internal_t
*
l_client_http_internal
=
DAP_CLIENT_HTTP
(
a_es
);
if
(
!
l_client_http_internal
)
{
log_it
(
L_ERROR
,
"s_http_write: l_client_http_internal is NULL!"
);
...
...
@@ -280,7 +280,7 @@ void* dap_client_http_request_custom(const char *a_uplink_addr, uint16_t a_uplin
dap_client_http_callback_data_t
a_response_callback
,
dap_client_http_callback_error_t
a_error_callback
,
void
*
a_obj
,
char
**
a_custom
,
size_t
a_custom_count
)
{
log_it
(
L_DEBUG
,
"HTTP request on url '%s:%d'"
,
a_uplink_addr
,
a_uplink_port
);
//
log_it(L_DEBUG, "HTTP request on url '%s:%d'", a_uplink_addr, a_uplink_port);
static
dap_events_socket_callbacks_t
l_s_callbacks
=
{
.
new_callback
=
s_http_new
,
.
read_callback
=
s_http_read
,
...
...
@@ -347,7 +347,7 @@ void* dap_client_http_request_custom(const char *a_uplink_addr, uint16_t a_uplin
if
(
a_request
&&
(
dap_strcmp
(
a_method
,
"POST"
)
==
0
||
dap_strcmp
(
a_method
,
"POST_ENC"
)
==
0
))
{
char
l_buf
[
1024
];
log_it
(
L_DEBUG
,
"POST request with %u bytes of decoded data"
,
a_request_size
);
//
log_it(L_DEBUG, "POST request with %u bytes of decoded data", a_request_size);
if
(
a_request_content_type
)
{
dap_snprintf
(
l_buf
,
sizeof
(
l_buf
),
"Content-Type: %s
\r\n
"
,
a_request_content_type
);
...
...
This diff is collapsed.
Click to expand it.
src/dap_client_pvt.c
+
1
−
1
View file @
1b752f98
...
...
@@ -2,7 +2,7 @@
* Authors:
* Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net>
* DeM Labs Inc. https://demlabs.net
*
K
el
vin Project https://github.com/kelvinblockchain
*
C
el
lFrame SDK https://cellframe.net
* Copyright (c) 2017-2019
* All rights reserved.
...
...
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