Skip to content

Commit 852c324

Browse files
committed
fix the bug of missing parameter "level"
while calling function debug to record a error log, parameter "level" is missing here. hope can help to fix this bug, thanks:) Signed-off-by: hongze zhu <[email protected]>
1 parent f0f381d commit 852c324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/centralserver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ _connect_auth_server(int level)
319319
free(h_addr);
320320

321321
if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
322-
debug(LOG_ERR, "Level %d: Failed to create a new SOCK_STREAM socket: %s", strerror(errno));
322+
debug(LOG_ERR, "Level %d: Failed to create a new SOCK_STREAM socket: %s", level, strerror(errno));
323323
return (-1);
324324
}
325325

0 commit comments

Comments
 (0)