Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319444 - Two nulls are appended to log statements from ContextHanler$Context
Summary: Two nulls are appended to log statements from ContextHanler$Context
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 trivial (vote)
Target Milestone: 7.2.0.RC0   Edit
Assignee: Michael Gorovoy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-09 18:42 EDT by Coda Hale CLA
Modified: 2010-07-19 20:24 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Coda Hale CLA 2010-07-09 18:42:20 EDT
Build Identifier: 7.1.5.v20100705

ContextHandler$Context#log(String) is implemented as follows:

     _logger.info(msg, null, null);

Logger#info(String, Object…) treats the vararg parameter as an array of values to be formatted as strings, which appends two "null" strings to the end of every log statement.

Reproducible: Always

Steps to Reproduce:
1. Log anything using ContextHandler$Context#log(String)
Comment 1 Michael Gorovoy CLA 2010-07-19 20:24:36 EDT
Committed r2154. Thanks a lot for the report.