Commit 16770a76 authored by jan.koester's avatar jan.koester
Browse files

test

parent 9df2583f
Loading
Loading
Loading
Loading
+5 −5
Changes for src/blogi.cpp: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -2416,19 +2416,19 @@ private:
protected:
    // Called when the internal buffer is full or when a stream is flushed.
    virtual int overflow(int c) override {
        if (c != EOF) {
        if (c == EOF) {
            return sync() == 0 ? 0 : EOF;
        }
        buffer += (char)c;
        if (c == '\n') {
                if (!buffer.empty()) {
            if (buffer.size() > 1) {
                // Remove trailing newline before logging
                std::string messageToLog = buffer.substr(0, buffer.length() - 1);
                LogToEventViewer(logType, messageToLog);
            }
            buffer.clear();
                return c; // Success
            }
        }
        return EOF;
        return c; // Success — must return the character, not EOF
    }

    // Called when the stream needs to flush manually
+0 −1
Changes for src/conf.cpp: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -195,7 +195,6 @@ const std::string & blogi::Config::getsslkeypath() const{
const std::string & blogi::Config::getDomain() const{
    return _Domain;
}

const std::string & blogi::Config::getTmpDir() const{
    return _TmpDir;
}