one log_debug -> log_error, also some trivial indent
This commit is contained in:
@@ -128,7 +128,7 @@ void PostgresqlEngine::init_session()
|
|||||||
{
|
{
|
||||||
const auto res = this->raw_exec("SET SESSION TIME ZONE 'UTC'");
|
const auto res = this->raw_exec("SET SESSION TIME ZONE 'UTC'");
|
||||||
if (!std::get<bool>(res))
|
if (!std::get<bool>(res))
|
||||||
log_debug("Failed to set UTC timezone: ", std::get<std::string>(res));
|
log_error("Failed to set UTC timezone: ", std::get<std::string>(res));
|
||||||
}
|
}
|
||||||
long double PostgresqlEngine::epoch_to_floating_value(long double seconds) const
|
long double PostgresqlEngine::epoch_to_floating_value(long double seconds) const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -760,10 +760,10 @@ bool BiboumiComponent::handle_mam_request(const Stanza& stanza)
|
|||||||
lines.erase(lines.begin(), std::prev(lines.end(), 100));
|
lines.erase(lines.begin(), std::prev(lines.end(), 100));
|
||||||
}
|
}
|
||||||
for (const Database::MucLogLine& line: lines)
|
for (const Database::MucLogLine& line: lines)
|
||||||
{
|
{
|
||||||
if (!line.col<Database::Nick>().empty())
|
if (!line.col<Database::Nick>().empty())
|
||||||
this->send_archived_message(line, to.full(), from.full(), query_id);
|
this->send_archived_message(line, to.full(), from.full(), query_id);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
auto fin_ptr = std::make_unique<XmlNode>("fin");
|
auto fin_ptr = std::make_unique<XmlNode>("fin");
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user