Skip to content

Commit f85ba39

Browse files
committed
Improve WoL error logging
1 parent cb350e6 commit f85ba39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/gaurav/avnc/util/WakeOnLAN.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fun parseBroadcastAddress(address: String): InetAddress {
3131
try {
3232
return InetAddress.getByName(address)
3333
} catch (t: Throwable) {
34-
throw IllegalArgumentException("Invalid broadcast address", t)
34+
throw IllegalArgumentException("Invalid broadcast address: $address", t)
3535
}
3636
}
3737

app/src/main/java/com/gaurav/avnc/viewmodel/VncViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class VncViewModel(app: Application) : BaseViewModel(app), VncClient.Observer {
252252
.onFailure {
253253
launchMain {
254254
Toast.makeText(app, "Wake-on-LAN: ${it.message}", Toast.LENGTH_LONG).show()
255-
Log.w(javaClass.simpleName, "Cannot send WoL packet", it)
255+
Log.w("WakeOnLAN", "Cannot send WoL packet", it)
256256
}
257257
}
258258
}

0 commit comments

Comments
 (0)