querylog: imp code

This commit is contained in:
Dimitry Kolyshev
2023-06-13 13:08:15 +04:00
parent fd7260f6de
commit 86e25944b3
2 changed files with 75 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ var csvHeaderRow = csvRow{
// toCSV returns a slice of strings with entry fields according to the
// csvHeaderRow slice.
func (e *logEntry) toCSV() (out csvRow) {
func (e *logEntry) toCSV() (out *csvRow) {
var filterID, filterRule string
if e.Result.IsFiltered && len(e.Result.Rules) > 0 {
@@ -47,7 +47,7 @@ func (e *logEntry) toCSV() (out csvRow) {
aData := ansData(e)
return csvRow{
return &csvRow{
strconv.FormatBool(e.AuthenticatedData),
aData.rCode,
aData.typ,