File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,15 +125,6 @@ public static function handleSPCException(SPCException $e): void
125125
126126 self ::logError ("\n---------------------------------------- \n" );
127127
128- // put getenv info to log
129- $ env_log = fopen (SPC_ENV_LOG , 'a ' );
130- $ env_info = getenv ();
131- if ($ env_info ) {
132- foreach ($ env_info as $ k => $ v ) {
133- fwrite ($ env_log , $ k . ' = ' . $ v . PHP_EOL );
134- }
135- }
136-
137128 self ::logError ('⚠ The ' . ConsoleColor::cyan ('console output log ' ) . ConsoleColor::red (' is saved in ' ) . ConsoleColor::none (SPC_OUTPUT_LOG ));
138129 if (file_exists (SPC_SHELL_LOG )) {
139130 self ::logError ('⚠ The ' . ConsoleColor::cyan ('shell output log ' ) . ConsoleColor::red (' is saved in ' ) . ConsoleColor::none (SPC_SHELL_LOG ));
Original file line number Diff line number Diff line change 9494const SPC_LOGS_DIR = WORKING_DIR . DIRECTORY_SEPARATOR . 'log ' ;
9595const SPC_OUTPUT_LOG = SPC_LOGS_DIR . DIRECTORY_SEPARATOR . 'spc.output.log ' ;
9696const SPC_SHELL_LOG = SPC_LOGS_DIR . DIRECTORY_SEPARATOR . 'spc.shell.log ' ;
97- const SPC_ENV_LOG = SPC_LOGS_DIR . DIRECTORY_SEPARATOR . 'spc.env.log ' ;
9897
9998ConsoleLogger::$ date_format = 'H:i:s ' ;
10099ConsoleLogger::$ format = '[%date%] [%level_short%] %body% ' ;
You can’t perform that action at this time.
0 commit comments