config: change the default logging level to INFO (#902)

config: change the default logging level to INFO

DEBUG logging level is very verbose and potentially logs sensitive data.
We should set default log level to INFO.

Updates #895
Fixes #896
This commit is contained in:
Cuong Manh Le 2020-06-15 22:55:18 +07:00 committed by GitHub
parent 896467c4bf
commit e0bdd906f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 53 deletions

View file

@ -45,7 +45,7 @@ type Options struct {
Debug bool `mapstructure:"pomerium_debug" yaml:"pomerium_debug,omitempty"`
// LogLevel sets the global override for log level. All Loggers will use at least this value.
// Possible options are "info","warn", and "error". Defaults to "debug".
// Possible options are "info","warn","debug" and "error". Defaults to "info".
LogLevel string `mapstructure:"log_level" yaml:"log_level,omitempty"`
// ProxyLogLevel sets the log level for the proxy service.
@ -256,7 +256,7 @@ type certificateFilePair struct {
// DefaultOptions are the default configuration options for pomerium
var defaultOptions = Options{
Debug: false,
LogLevel: "debug",
LogLevel: "info",
Services: "all",
CookieHTTPOnly: true,
CookieSecure: true,