From 107237c8e84c541d7f24095dcce7abaf5d973a7e Mon Sep 17 00:00:00 2001 From: Daenney Date: Sun, 21 May 2023 17:12:47 +0200 Subject: [feature] Make client IP logging configurable (#1799) --- internal/config/config.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index b5c228a35..7119fc4a7 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -46,6 +46,7 @@ func fieldtag(field, tag string) string { type Configuration struct { LogLevel string `name:"log-level" usage:"Log level to run at: [trace, debug, info, warn, fatal]"` LogDbQueries bool `name:"log-db-queries" usage:"Log database queries verbosely when log-level is trace or debug"` + LogClientIP bool `name:"log-client-ip" usage:"Include the client IP in logs"` ApplicationName string `name:"application-name" usage:"Name of the application, used in various places internally"` LandingPageUser string `name:"landing-page-user" usage:"the user that should be shown on the instance's landing page"` ConfigPath string `name:"config-path" usage:"Path to a file containing gotosocial configuration. Values set in this file will be overwritten by values set as env vars or arguments"` -- cgit v1.2.3