X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCLIHandler.pm;h=6eab3c62bbf8dda07ebc0ed1eed216cb8d288a6e;hp=0b93a4bc224fa5021d2bb29bfe6f391bec89fbb7;hb=57d441516345f6142e4660b4801672be2dbfe28b;hpb=f53ad23ac974cf6677e1eb3faa44a2f61b8e1040 diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index 0b93a4b..6eab3c6 100644 --- a/src/PVE/CLIHandler.pm +++ b/src/PVE/CLIHandler.pm @@ -616,7 +616,8 @@ sub run_cli_handler { $exename = &$get_exe_name($class); - initlog($exename); + my $logid = $ENV{PVE_LOG_ID} || $exename; + initlog($logid); no strict 'refs'; $cmddef = ${"${class}::cmddef"};