mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Remove spc.env.log due to potential secret leaks
This commit is contained in:
parent
afd6791075
commit
1e9434221b
@ -125,15 +125,6 @@ class ExceptionHandler
|
||||
|
||||
self::logError("\n----------------------------------------\n");
|
||||
|
||||
// put getenv info to log
|
||||
$env_log = fopen(SPC_ENV_LOG, 'a');
|
||||
$env_info = getenv();
|
||||
if ($env_info) {
|
||||
foreach ($env_info as $k => $v) {
|
||||
fwrite($env_log, $k . ' = ' . $v . PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
self::logError('⚠ The ' . ConsoleColor::cyan('console output log') . ConsoleColor::red(' is saved in ') . ConsoleColor::none(SPC_OUTPUT_LOG));
|
||||
if (file_exists(SPC_SHELL_LOG)) {
|
||||
self::logError('⚠ The ' . ConsoleColor::cyan('shell output log') . ConsoleColor::red(' is saved in ') . ConsoleColor::none(SPC_SHELL_LOG));
|
||||
|
||||
@ -94,7 +94,6 @@ const SPC_SOURCE_LOCAL = 'local'; // download as local directory
|
||||
const SPC_LOGS_DIR = WORKING_DIR . DIRECTORY_SEPARATOR . 'log';
|
||||
const SPC_OUTPUT_LOG = SPC_LOGS_DIR . DIRECTORY_SEPARATOR . 'spc.output.log';
|
||||
const SPC_SHELL_LOG = SPC_LOGS_DIR . DIRECTORY_SEPARATOR . 'spc.shell.log';
|
||||
const SPC_ENV_LOG = SPC_LOGS_DIR . DIRECTORY_SEPARATOR . 'spc.env.log';
|
||||
|
||||
ConsoleLogger::$date_format = 'H:i:s';
|
||||
ConsoleLogger::$format = '[%date%] [%level_short%] %body%';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user