Page 1 of 1

How to change log level to debugging mode.

Posted: Fri Jul 15, 2022 10:57 am
by Pratik
logs are used to hunt issues and crashes and get a clear understanding of system behavior.
Logs enables you to analyze issues with ease.

SafeSquid provide such logs which are locate at /var/log/safesquid/native/safesquid.log and /var/log/safesquid/extended/extended.log
Respective logs while help in your troubleshooting.

By default safesquid native logs does not provide comprehensive information.
Using safesquid's debug mode, native log prints comprehensive details.

Below is an example of logs which is written in default mode.
[Output of find client id.sh with LOG_LEVEL set to everything but not debugging]
image.png
image.png (103.07 KiB) Viewed 957 times
You can follow below steps to change LOG_LEVEL from default to debug.

Access your safesquid interface.
image.png
image.png (51.58 KiB) Viewed 957 times
Click on support which is at top right of the screen.
image.png
image.png (57.94 KiB) Viewed 956 times
Select startup params
image.png
image.png (58.49 KiB) Viewed 956 times
Click on edit icon
image.png
image.png (101.09 KiB) Viewed 956 times
image.png
image.png (102.13 KiB) Viewed 956 times
Click on the
image.png
image.png (484 Bytes) Viewed 956 times
symbol in front of LOG_LEVEL
image.png
image.png (104.14 KiB) Viewed 956 times
Copy debugging set number.
image.png
image.png (107.19 KiB) Viewed 956 times
Paste inside LOG_LEVEL and Click on the tick mark
image.png
image.png (104.3 KiB) Viewed 956 times
Now click “Restart” to restart SafeSquid services to apply changes.
image.png
image.png (104.7 KiB) Viewed 956 times
Click on submit
image.png
image.png (107.61 KiB) Viewed 956 times
image.png
image.png (101.45 KiB) Viewed 956 times
Log will be written in debugging mode.
find_client_id.sh output will have complete connection details.
image.png
image.png (200.08 KiB) Viewed 956 times