mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: rosslh <ross@rosshill.ca>
24 lines
599 B
PHP
24 lines
599 B
PHP
<?php
|
|
|
|
namespace App\Traits;
|
|
|
|
/**
|
|
* The "Environment values in logs" setting of a standalone database.
|
|
*/
|
|
trait HasLogRedactionSetting
|
|
{
|
|
public function initializeHasLogRedactionSetting(): void
|
|
{
|
|
$this->mergeFillable(['redact_all_env_values_in_logs']);
|
|
$this->mergeCasts(['redact_all_env_values_in_logs' => 'boolean']);
|
|
}
|
|
|
|
/**
|
|
* Tell if every environment value is hidden in logs. When false, only locked values are hidden.
|
|
*/
|
|
public function redactsAllEnvValuesInLogs(): bool
|
|
{
|
|
return $this->redact_all_env_values_in_logs ?? true;
|
|
}
|
|
}
|