Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: persistent branch build failed #76

Open
wants to merge 1 commit into
base: persistent
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ sample/log_c_sdk_sample.cbp
# IDEA
.idea


cmake-build-debug
2 changes: 1 addition & 1 deletion src/log_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ unsigned int LOG_GET_TIME();
void log_http_inject_headers(log_producer_config *config, char **src_headers, int src_count, char **dest_headers, int *dest_count);
void log_http_release_inject_headers(log_producer_config *config, char **dest_headers, int dest_count);

log_status_t sls_log_init(int32_t log_global_flag)
log_status_t sls_log_init()
{
#if 0
CURLcode ecode;
Expand Down
3 changes: 1 addition & 2 deletions src/log_producer_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ char * _get_pack_id(const char * configName, const char * ip)
_generate_pack_id_timestamp(&timestamp);

char *prefix = (char *) malloc(100 * sizeof (char));
strcpy(prefix, configName);
sprintf(prefix, "%s%ld", prefix, timestamp);
sprintf(prefix, "%s%ld", configName, timestamp);

unsigned char md5Buf[16];
mbedtls_md5((const unsigned char *)prefix, strlen(prefix), md5Buf);
Expand Down