From 11aa47c440cb5ac52a1102ff138b70d7f37d5987 Mon Sep 17 00:00:00 2001 From: Yury Gargay Date: Fri, 16 Feb 2024 13:09:43 +0100 Subject: [PATCH] Extend client troubleshooting with guide for Android (#146) --- src/pages/how-to/troubleshooting-client.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pages/how-to/troubleshooting-client.mdx b/src/pages/how-to/troubleshooting-client.mdx index db238b9d..46452c65 100644 --- a/src/pages/how-to/troubleshooting-client.mdx +++ b/src/pages/how-to/troubleshooting-client.mdx @@ -104,6 +104,16 @@ docker run --rm --name PEER_NAME --hostname PEER_NAME --cap-add=NET_ADMIN --cap- -e NB_SETUP_KEY= -e NB_LOG_LEVEL=debug -v netbird-client:/etc/netbird netbirdio/netbird:latest ``` +### On Android +Enable the ADB in the developer menu on the Android device. +In the app set the the Trace log level setting - it is a checkbox in the advanced menu. +With the ADB tool, you can get the logs from your device. The ADB is part of the SDK platform tools pack (zip file). +You can download it from [here](https://developer.android.com/tools/releases/platform-tools). +Please extract it and run the next command in the case of Linux: +```shell +sudo adb logcat -v time | grep GoLog +``` + ## Running the agent in foreground mode You can run the agent in foreground mode to see the logs in the terminal. This is useful to debugging issues with the agent.