From d375a9edeb7a2aa21497a2cbc1db0d3f703283a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 13 Apr 2018 23:37:46 +0200 Subject: one log_debug -> log_error, also some trivial indent --- src/database/postgresql_engine.cpp | 2 +- src/xmpp/biboumi_component.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/database/postgresql_engine.cpp b/src/database/postgresql_engine.cpp index abeb779..d97f2ff 100644 --- a/src/database/postgresql_engine.cpp +++ b/src/database/postgresql_engine.cpp @@ -128,7 +128,7 @@ void PostgresqlEngine::init_session() { const auto res = this->raw_exec("SET SESSION TIME ZONE 'UTC'"); if (!std::get(res)) - log_debug("Failed to set UTC timezone: ", std::get(res)); + log_error("Failed to set UTC timezone: ", std::get(res)); } long double PostgresqlEngine::epoch_to_floating_value(long double seconds) const { diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index 9748258..acaac34 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -760,10 +760,10 @@ bool BiboumiComponent::handle_mam_request(const Stanza& stanza) lines.erase(lines.begin(), std::prev(lines.end(), 100)); } for (const Database::MucLogLine& line: lines) - { - if (!line.col().empty()) - this->send_archived_message(line, to.full(), from.full(), query_id); - } + { + if (!line.col().empty()) + this->send_archived_message(line, to.full(), from.full(), query_id); + } { auto fin_ptr = std::make_unique("fin"); { -- cgit v1.2.3