ThePrez / Manzan

GNU Lesser General Public License v2.1
8 stars 1 forks source link

Rework logging #150

Closed jonnyz32 closed 2 months ago

jonnyz32 commented 2 months ago

Set the MANZAN_DEBUG_LEVEL system variable to alternate between debug levels: MANZAN_DEBUG_LEVEL=0 => Don't log any messages MANZAN_DEBUG_LEVEL=1 => Log only errors MANZAN_DEBUG_LEVEL=2 => Log errors and warnings MANZAN_DEBUG_LEVEL=3 => Log errors, warnings, and info

If the MANZAN_DEBUG_LEVEL is not set, it will use 2 by default

The env var can be set with ADDENVVAR command. After which you will need to run ENDTCPSVR SSHD and STRTCPSVR SSHD. Then restart your ssh session.

Also changed script permissions so that they can be executed

SanjulaGanepola commented 2 months ago

@jonnyz32 What machine did you set this MANZAN_DEBUG_LEVEL on so I can test it out?