summaryrefslogtreecommitdiff
path: root/vfs
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2024-01-19 19:03:20 +0100
committerTomas Bzatek <tbzatek@redhat.com>2024-01-19 19:03:20 +0100
commitb665202fc06826ae3c239f3420f8052989c7568c (patch)
tree580876490e5d5968990d4c858bcfff7caa208f04 /vfs
parentc39411fcedd2086c10511a2be8bf81ba6c3c568c (diff)
downloadtuxcmd-0.6.79.tar.xz
Set the TUXMCD_DEBUG env. var for VFS loggingv0.6.79
In case tuxcmd is started with the --debug switch, set the TUXMCD_DEBUG env. var that is later picked up by modules.
Diffstat (limited to 'vfs')
-rw-r--r--vfs/UVFSCore.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/vfs/UVFSCore.pas b/vfs/UVFSCore.pas
index b39ad8e..e7d63a2 100644
--- a/vfs/UVFSCore.pas
+++ b/vfs/UVFSCore.pas
@@ -1121,6 +1121,8 @@ end;
procedure DoInitPlugins;
begin
+ if ParamDebug then
+ setenv('TUXCMD_DEBUG', '1', 1);
PluginList := TList.Create;
if not ParamDisablePlugins then begin
BinaryPath := GetBinaryPath;