Merge pull request #41 from emersion/log-utf8
Avoid printing binary in logs
This commit is contained in:
commit
915ca3d045
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ import io.heckel.ntfy.util.Log
|
||||||
*/
|
*/
|
||||||
class Distributor(val context: Context) {
|
class Distributor(val context: Context) {
|
||||||
fun sendMessage(app: String, connectorToken: String, message: ByteArray) {
|
fun sendMessage(app: String, connectorToken: String, message: ByteArray) {
|
||||||
Log.d(TAG, "Sending MESSAGE to $app (token=$connectorToken): ${String(message)} (${message.size} bytes)}")
|
Log.d(TAG, "Sending MESSAGE to $app (token=$connectorToken): ${message.size} bytes")
|
||||||
val broadcastIntent = Intent()
|
val broadcastIntent = Intent()
|
||||||
broadcastIntent.`package` = app
|
broadcastIntent.`package` = app
|
||||||
broadcastIntent.action = ACTION_MESSAGE
|
broadcastIntent.action = ACTION_MESSAGE
|
||||||
|
|
Loading…
Reference in a new issue