Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 1cb43f6

Browse files
committed
common: Sanitise a log message that I missed in the previous commit
1 parent f8fa59a commit 1cb43f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/postgresql.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ func CheckLicenceExists(userName, licenceName string) (exists bool, err error) {
389389
var count int
390390
err = pdb.QueryRow(dbQuery, userName, licenceName).Scan(&count)
391391
if err != nil {
392-
log.Printf("Error checking if licence '%s' exists for user '%s' in database: %v\n", licenceName,
393-
userName, err)
392+
log.Printf("Error checking if licence '%s' exists for user '%s' in database: %v\n",
393+
SanitiseLogString(licenceName), userName, err)
394394
return false, err
395395
}
396396
if count == 0 {

0 commit comments

Comments
 (0)