line_logger fixes

This commit is contained in:
gabime
2014-03-31 01:12:49 +03:00
parent 4c367a4bb5
commit 98476e229a
2 changed files with 8 additions and 7 deletions

View File

@@ -48,7 +48,8 @@ public:
_enabled(other._enabled) {}
~line_logger()
{
{
//only if enabled and not empty
if (!_empty)
{
_oss << os::eol();