Add ability to enable / disable access log.

In high frequency environments it can be a little bit noisy.
This commit is contained in:
2023-10-09 08:41:05 +01:00
parent 5f44ce797a
commit 3b1af9cafe
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@ func parseConfig() {
c.Logger = libpack_logging.NewLogger()
c.Client.GQLClient = graphql.NewConnection()
c.Client.GQLClient.SetEndpoint(c.Server.HostGraphQL)
c.Server.AccessLog = envutil.GetBool("ENABLE_ACCESS_LOG", false)
cfg = &c
enableCache() // takes close to no resources, but can be used with dynamic query cache
}