diff options
Diffstat (limited to 'cpp/src/Ice/LoggerI.cpp')
-rw-r--r-- | cpp/src/Ice/LoggerI.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cpp/src/Ice/LoggerI.cpp b/cpp/src/Ice/LoggerI.cpp index 3fed27a131c..04982f6a651 100644 --- a/cpp/src/Ice/LoggerI.cpp +++ b/cpp/src/Ice/LoggerI.cpp @@ -21,11 +21,6 @@ Ice::LoggerI::LoggerI(const string& prefix) if(!prefix.empty()) { _prefix = prefix + ": "; - - // - // A prefix filled with spaces and as long as the prefix. - // - _emptyPrefix.append(_prefix.length(), ' '); } } @@ -33,15 +28,14 @@ void Ice::LoggerI::trace(const string& category, const string& message) { IceUtil::Mutex::Lock sync(_globalMutex); - string s = "[ " + category + ": " + message + " ]"; + string s = "[ " + _prefix + category + ": " + message + " ]"; string::size_type idx = 0; while((idx = s.find("\n", idx)) != string::npos) { s.insert(idx + 1, " "); - s.insert(idx + 1, _emptyPrefix); ++idx; } - cerr << _prefix << s << endl; + cerr << s << endl; } void |