Skip to content

Conversation

@bcsgh
Copy link
Contributor

@bcsgh bcsgh commented Feb 14, 2023

Identify the Bug

#297

Description of the Change

This makes it generate full log messages.

There are a small number of places where error_log is called where it is expected to apply printf style formatting to it's extra arguments. In most of them, the extra arguments are the most important.

Alternate Designs

None.

Possible Drawbacks

None?

Verification Process

Building with this commit allowed me to fix the issue I was having using the library.

Release Notes

Make httpserver::create_webserver::log_error callback get fully formatted messages.

…erates full log messages.

There are a small number of places where error_log is called where it is expected to apply printf style formatting to it's extra arguments. In most of them, the extra arguments are the most important.
…nd va_end_missing.

(I don't have a cppcheck setup and I can't seem to make anything fail so I'm kinda gussing here.)
(I don't have a cppcheck setup and I can't seem to make anything fail so I'm kinda gussing here.)
@bcsgh bcsgh changed the title Make httpserver::error_log consume and apply va_list ap. Make httpserver::error_log consume and apply va_list. Feb 15, 2023
@etr
Copy link
Owner

etr commented Mar 6, 2023

Thanks for this as well; it is going to help a lot in streamlining the logging for quite a lot of folks.

@etr etr merged commit 17dd399 into etr:master Mar 6, 2023
@bcsgh bcsgh deleted the bcsgh/fix-logging-formatting branch April 11, 2023 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants