mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #31880 from nextcloud/backport/31877/stable23
[stable23] Do not decorate the CLI output if it's explicitly turned off
This commit is contained in:
commit
35c7d14f95
1 changed files with 5 additions and 0 deletions
|
|
@ -99,6 +99,11 @@ class TimestampFormatter implements OutputFormatterInterface {
|
|||
* log timezone and dateformat, e.g. "2015-06-23T17:24:37+02:00"
|
||||
*/
|
||||
public function format($message) {
|
||||
if (!$this->formatter->isDecorated()) {
|
||||
// Don't add anything to the output when we shouldn't
|
||||
return $this->formatter->format($message);
|
||||
}
|
||||
|
||||
$timeZone = $this->config->getSystemValue('logtimezone', 'UTC');
|
||||
$timeZone = $timeZone !== null ? new \DateTimeZone($timeZone) : null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue