diff --git a/GiiCommand.php b/GiiCommand.php index de52683..921139c 100644 --- a/GiiCommand.php +++ b/GiiCommand.php @@ -67,7 +67,7 @@ class GiiCommand extends Command $output->writeln(json_encode($array, JSON_UNESCAPED_UNICODE)); return 0; } catch (\Throwable $throwable) { - $output->writeln(throwable($throwable)); + $output->writeln(throwable($throwable)); return 1; } } diff --git a/GiiController.php b/GiiController.php index 4e98ac8..3b5da87 100644 --- a/GiiController.php +++ b/GiiController.php @@ -64,7 +64,7 @@ namespace {$namespace}; $import = $this->getImports($path['path'] . '/' . $managerName . 'Controller.php', $class); } catch (\Throwable $Exception) { - error($Exception); + \Kiri::getLogger()->json_log($Exception); exit(); } } else { diff --git a/GiiModel.php b/GiiModel.php index 5b4882d..96dacf9 100644 --- a/GiiModel.php +++ b/GiiModel.php @@ -68,7 +68,7 @@ namespace ' . $namespace . '; $html .= $imports . PHP_EOL; } } catch (\Throwable $e) { - error($e); + \Kiri::getLogger()->json_log($e); } }