Skip to content

Commit f3fbb81

Browse files
committed
Warn on tile persistence failures
1 parent dea54e8 commit f3fbb81

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nucleus/tile/Scheduler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ void Scheduler::purge_ram_cache()
192192
bool Scheduler::persist_tiles()
193193
{
194194
if (m_name == "unnamed" || m_name.isEmpty()) {
195+
qWarning() << "Not persisting tiles because the scheduler is not named.";
195196
return false;
196197
}
197198
const auto start = std::chrono::steady_clock::now();
@@ -204,7 +205,7 @@ bool Scheduler::persist_tiles()
204205
.arg(m_ram_cache.n_cached_objects());
205206

206207
if (!r.has_value()) {
207-
qDebug()
208+
qWarning()
208209
<< QString("Writing tiles to disk into %1 failed: %2. Removing all files.").arg(QString::fromStdString(disk_cache_path().string())).arg(r.error());
209210
std::filesystem::remove_all(disk_cache_path());
210211
}

0 commit comments

Comments
 (0)