Skip to content

Commit 4f5d045

Browse files
committed
Add more logs details in case of selectBySerial error
1 parent 00a313a commit 4f5d045

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • source_modules/hydrasdr_source/src

source_modules/hydrasdr_source/src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ class HydraSDRSourceModule : public ModuleManager::Instance {
194194
if (err != 0) {
195195
char buf[1024];
196196
snprintf(buf, sizeof(buf), "%016" PRIX64, serial);
197-
flog::error("Could not open HydraSDR {0}", buf);
197+
flog::error("Could not open HydraSDR {0} (err={1})", buf, err);
198198
selectedSerial = 0;
199199
return;
200200
}
201201
}
202-
catch (const std::exception&) {
202+
catch (const std::exception& e) {
203203
char buf[1024];
204204
snprintf(buf, sizeof(buf), "%016" PRIX64, serial);
205-
flog::error("Could not open HydraSDR {}", buf);
205+
flog::error("Could not open HydraSDR {} (exception: {})", buf, e.what());
206206
return;
207207
}
208208
devId = devices.valueId(serial);

0 commit comments

Comments
 (0)