Merge pull request #87219 from serokell/kirelagin/postgres-no-time
postgres: Do not log timestamp
This commit is contained in:
commit
85a0587884
@ -17,6 +17,7 @@ let
|
|||||||
hba_file = '${pkgs.writeText "pg_hba.conf" cfg.authentication}'
|
hba_file = '${pkgs.writeText "pg_hba.conf" cfg.authentication}'
|
||||||
ident_file = '${pkgs.writeText "pg_ident.conf" cfg.identMap}'
|
ident_file = '${pkgs.writeText "pg_ident.conf" cfg.identMap}'
|
||||||
log_destination = 'stderr'
|
log_destination = 'stderr'
|
||||||
|
log_line_prefix = '${cfg.logLinePrefix}'
|
||||||
listen_addresses = '${if cfg.enableTCPIP then "*" else "localhost"}'
|
listen_addresses = '${if cfg.enableTCPIP then "*" else "localhost"}'
|
||||||
port = ${toString cfg.port}
|
port = ${toString cfg.port}
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
@ -186,6 +187,17 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
logLinePrefix = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "[%p] ";
|
||||||
|
example = "%m [%p] ";
|
||||||
|
description = ''
|
||||||
|
A printf-style string that is output at the beginning of each log line.
|
||||||
|
Upstream default is <literal>'%m [%p] '</literal>, i.e. it includes the timestamp. We do
|
||||||
|
not include the timestamp, because journal has it anyway.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraPlugins = mkOption {
|
extraPlugins = mkOption {
|
||||||
type = types.listOf types.path;
|
type = types.listOf types.path;
|
||||||
default = [];
|
default = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user