--- lbbs/src/article_cache.c 2025/11/22 10:36:37 1.37 +++ lbbs/src/article_cache.c 2025/12/18 02:56:00 1.39 @@ -117,7 +117,7 @@ int article_cache_generate(const char *c p_article->username, p_article->nickname, p_section->sname, p_section->stitle, p_article->title, BBS_name, str_sub_dt); snprintf(footer, sizeof(footer), - "\n--\n%s※ 来源: %s http://%s [FROM: %s]\033[m\n\n", + "\n--\n%s※ 来源: %s https://%s [FROM: %s]\033[m\n\n", BBS_article_footer_color[p_article->aid % BBS_article_footer_color_count], BBS_name, BBS_server, sub_ip); @@ -129,11 +129,9 @@ int article_cache_generate(const char *c if (header_len != cache.line_offsets[header_line_cnt]) { -#ifdef _DEBUG - log_error("Header of article(aid=%d) is truncated from %ld to %ld\n, body_line=%ld, body_line_limit=%ld", + log_debug("Header of article(aid=%d) is truncated from %ld to %ld\n, body_line=%ld, body_line_limit=%ld", p_article->aid, header_len, cache.line_offsets[header_line_cnt], header_line_cnt, MAX_SPLIT_FILE_LINES); -#endif header_len = (size_t)cache.line_offsets[header_line_cnt]; } @@ -147,11 +145,9 @@ int article_cache_generate(const char *c if (body_len != (size_t)cache.line_offsets[cache.line_total]) { -#ifdef _DEBUG - log_error("Body of article(aid=%d) is truncated from %ld to %ld, body_line=%ld, body_line_limit=%ld\n", + log_debug("Body of article(aid=%d) is truncated from %ld to %ld, body_line=%ld, body_line_limit=%ld\n", p_article->aid, body_len, cache.line_offsets[cache.line_total], body_line_cnt, MAX_SPLIT_FILE_LINES - header_line_cnt); -#endif cache.data_len = header_len + (size_t)(cache.line_offsets[cache.line_total]); } @@ -165,11 +161,9 @@ int article_cache_generate(const char *c if (footer_len != cache.line_offsets[cache.line_total + footer_line_cnt]) { -#ifdef _DEBUG - log_error("Footer of article(aid=%d) is truncated from %ld to %ld, footer_line=%ld, footer_line_limit=%ld\n", + log_debug("Footer of article(aid=%d) is truncated from %ld to %ld, footer_line=%ld, footer_line_limit=%ld\n", p_article->aid, footer_len, cache.line_offsets[cache.line_total + footer_line_cnt], footer_line_cnt, MAX_SPLIT_FILE_LINES - cache.line_total); -#endif footer_len = (size_t)(cache.line_offsets[cache.line_total + footer_line_cnt]); }