[
https://issues.apache.org/jira/browse/MINIFICPP-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arpad Boda updated MINIFICPP-1171:
----------------------------------
Description:
Malformed log strings don't print the value.
As an example, this line of code:
{code}./extensions/civetweb/processors/ListenHTTP.cpp:287:
logger_->log_debug("ListenHTTP handling POST request of length %ll",
req_info->content_length);{code}
Results in the following log message:
{code}[2020-03-03 17:00:29.710]
[org::apache::nifi::minifi::processors::ListenHTTP::Handler] [debug] ListenHTTP
handling POST request of length{code}
(Compiled with g++8.3 on Debian Buster)
was:
Malformed log strings don't print the value.
As an example, this line of code:
```./extensions/civetweb/processors/ListenHTTP.cpp:287:
logger_->log_debug("ListenHTTP handling POST request of length %ll",
req_info->content_length);```
Results in the following log message:
```[2020-03-03 17:00:29.710]
[org::apache::nifi::minifi::processors::ListenHTTP::Handler] [debug] ListenHTTP
handling POST request of length```
(Compiled with g++8.3 on Debian Buster)
> Fix "%ll" format strings in log lines
> -------------------------------------
>
> Key: MINIFICPP-1171
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1171
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Affects Versions: 0.7.0
> Reporter: Arpad Boda
> Assignee: Arpad Boda
> Priority: Minor
> Fix For: 0.8.0
>
>
> Malformed log strings don't print the value.
> As an example, this line of code:
> {code}./extensions/civetweb/processors/ListenHTTP.cpp:287:
> logger_->log_debug("ListenHTTP handling POST request of length %ll",
> req_info->content_length);{code}
> Results in the following log message:
> {code}[2020-03-03 17:00:29.710]
> [org::apache::nifi::minifi::processors::ListenHTTP::Handler] [debug]
> ListenHTTP handling POST request of length{code}
> (Compiled with g++8.3 on Debian Buster)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)