Refactoring for Gin, NoSurf and SCS continues.
This commit is contained in:
@@ -4,14 +4,11 @@ import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
|
||||
"synlotto-website/internal/models"
|
||||
"synlotto-website/internal/platform/config"
|
||||
)
|
||||
|
||||
func LogConfig(config *models.Config) {
|
||||
func LogConfig(config *config.Config) {
|
||||
safeConfig := *config
|
||||
safeConfig.CSRF.CSRFKey = "[REDACTED]"
|
||||
safeConfig.Session.AuthKeyPath = "[REDACTED]"
|
||||
safeConfig.Session.EncryptionKeyPath = "[REDACTED]"
|
||||
|
||||
cfg, err := json.MarshalIndent(safeConfig, "", " ")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user