From c2f55a2600d6981c1f84360f7c64bbb7a893d25c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 30 May 2024 01:52:43 -0700 Subject: [PATCH] map window: log style load errors (#32573) log errors --- selfdrive/ui/qt/maps/map.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index 5f178e9f8f..bb66f0869d 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -5,6 +5,7 @@ #include +#include "common/swaglog.h" #include "selfdrive/ui/qt/maps/map_helpers.h" #include "selfdrive/ui/qt/util.h" #include "selfdrive/ui/ui.h" @@ -262,6 +263,10 @@ void MapWindow::initializeGL() { loaded_once = true; } }); + + QObject::connect(m_map.data(), &QMapLibre::Map::mapLoadingFailed, [=](QMapLibre::Map::MapLoadingFailure err_code, const QString &reason) { + LOGE("Map loading failed with %d: '%s'\n", err_code, reason.toStdString().c_str()); + }); } void MapWindow::paintGL() {