Skip to content

Commit

Permalink
Use cachedir as the logdir for build purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Apr 26, 2024
1 parent 1f62d13 commit db611ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/packages/monolog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ monolog:
ident: openconext-profile
type: stream
path: "php://stderr"
formatter: \OpenConext\Infrastructure\Monolog\Formatter\JsonFormatter
formatter: 'OpenConext\Infrastructure\Monolog\Formatter\JsonFormatter'
console:
path: "php://stderr"
type: console
Expand Down
11 changes: 11 additions & 0 deletions src/OpenConext/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,15 @@ public function getProjectDir(): string
{
return dirname(__DIR__, 2);
}

/**
* Although we don't use the log dir, the method is required
* to be implemented because it is required during building of the container
*/
public function getLogDir(): string
{
return $this->getCacheDir();
}


}

0 comments on commit db611ba

Please sign in to comment.