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

Commit 5dae9e6

Browse files
committed
Cleanup§
1 parent d1c5685 commit 5dae9e6

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

platform/clickhouse/schema.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"github.com/QuesmaOrg/quesma/platform/logger"
88
"github.com/QuesmaOrg/quesma/platform/util"
9-
"github.com/k0kubun/pp"
109
"math"
1110
"reflect"
1211
"strings"
@@ -339,7 +338,6 @@ func (col *Column) createTableString(indentLvl int) string {
339338

340339
// TODO TTL only by timestamp for now!
341340
func (config *ChTableConfig) CreateTablePostFieldsString() string {
342-
pp.Println("aaaa", config)
343341
s := "ENGINE = " + config.Engine + "\n"
344342
if config.OrderBy != "" {
345343
s += "ORDER BY " + config.OrderBy + "\n"

platform/config/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package config
55
import (
66
"fmt"
77
"github.com/QuesmaOrg/quesma/platform/elasticsearch/elasticsearch_field_types"
8-
"github.com/QuesmaOrg/quesma/platform/logger"
98
"github.com/QuesmaOrg/quesma/platform/util"
109
"github.com/hashicorp/go-multierror"
1110
"github.com/knadh/koanf/parsers/yaml"
@@ -84,7 +83,6 @@ func loadConfigFile() {
8483
configPath = defaultConfigFileName
8584
}
8685
fmt.Printf("Using config file: [%s]\n", configPath)
87-
logger.Error().Msgf("Using config file: [%s]", configPath)
8886
if _, err := os.Stat(configPath); os.IsNotExist(err) {
8987
fmt.Printf("Error loading config file [%v], proceeding without it...\n", err)
9088
return
@@ -194,7 +192,6 @@ func (c *QuesmaConfiguration) OptimizersConfigAsString() string {
194192
}
195193

196194
func (c *QuesmaConfiguration) String() string {
197-
logger.Error().Msgf("QuesmaConfiguration: %v", c.IndexConfig)
198195
var indexConfigs string
199196
for indexName, idx := range c.IndexConfig {
200197
indexConfigs += idx.String(indexName)

platform/config/config_v2.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,6 @@ func (c *QuesmaNewConfiguration) TranslateToLegacyConfig() QuesmaConfiguration {
955955
errAcc = multierror.Append(errAcc, errTarget)
956956
}
957957
for _, target := range targets {
958-
logger.Info().Msgf("target %v", target)
959958
if targetType, found := c.getTargetType(target.target); found {
960959
if !slices.Contains(processedConfig.IngestTarget, targetType) {
961960
processedConfig.IngestTarget = append(processedConfig.IngestTarget, targetType)
@@ -972,11 +971,9 @@ func (c *QuesmaNewConfiguration) TranslateToLegacyConfig() QuesmaConfiguration {
972971
if val, exists := target.properties["tableName"]; exists {
973972
processedConfig.Override = val.(string)
974973
}
975-
if val, exists := target.properties["partitionBy"]; exists {
976-
processedConfig.PartitionBy = val.(string)
977-
}
978974
}
979975

976+
// maybe delete this?
980977
if indexConfig.PartitionBy != "" {
981978
processedConfig.PartitionBy = indexConfig.PartitionBy
982979
}

platform/config/index_config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package config
44

55
import (
66
"fmt"
7-
"github.com/QuesmaOrg/quesma/platform/logger"
87
"slices"
98
"strings"
109
)
@@ -62,7 +61,6 @@ func (c IndexConfiguration) String(indexName string) string {
6261
if c.UseCommonTable {
6362
builder.WriteString(", useSingleTable: true")
6463
}
65-
logger.Error().Msgf("IndexConfiguration: part %s ", c.PartitionBy)
6664
if len(c.PartitionBy) > 0 {
6765
builder.WriteString(", partitionBy: " + c.PartitionBy)
6866
}

0 commit comments

Comments
 (0)