$this->profiler->set(microtime(true), 'classinit');
$moduleName = $this->args->getModuleName();
- $page->setLogging($moduleName, $this->args->getMethod());
+ $page->setLogging($this->args->getCommand(), $this->args->getMethod());
try {
// Missing DB connection: ERROR
*/
private $basePath;
- private $timestamp = 0;
- private $moduleName = '';
- private $method = '';
+ private $timestamp = 0;
+ private $command = '';
+ private $method = '';
/**
* @param string $basepath The Page basepath
$this->basePath = $basepath;
}
- public function setLogging(string $moduleName, string $method)
+ public function setLogging(string $command, string $method)
{
- $this->moduleName = $moduleName;
- $this->method = $method;
+ $this->command = $command;
+ $this->method = $method;
}
public function logRuntime()
{
$runtime = number_format(microtime(true) - $this->timestamp, 3);
- Logger::debug('Runtime', ['method' => $this->method, 'module' => $this->moduleName, 'runtime' => $runtime]);
+ Logger::debug('Runtime', ['method' => $this->method, 'command' => $this->command, 'runtime' => $runtime]);
}
/**
{
$moduleName = $args->getModuleName();
- $this->moduleName = $moduleName;
- $this->method = $args->getMethod();
+ $this->command = $moduleName;
+ $this->method = $args->getMethod();
/* Create the page content.
* Calls all hooks which are including content operations