Skip to content

Commit eef0d11

Browse files
committed
chore: remove fmt printfs added previously
Signed-off-by: Frederico Araujo <[email protected]>
1 parent ae1903a commit eef0d11

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

driver/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ func run() int {
134134

135135
// load pipeline
136136
pl = pipeline.New(*driverDir, *pluginDir, *configFile)
137-
fmt.Printf("Driver dir is: %s\n", pipeline.DriverDir)
138137
if *inputType == "socket" {
139138
emptyType := ""
140139
inputType = &emptyType

driver/otel/filedriver.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ func (s *FileDriver) Run(path string, running *bool) error {
109109
}
110110

111111
var otpLogs []*otp.ResourceLogs
112-
113112
for _, fn := range files {
114113
logger.Trace.Println("Loading file: " + fn)
115114
s.file, err = os.Open(fn)
@@ -122,26 +121,22 @@ func (s *FileDriver) Run(path string, running *bool) error {
122121
logger.Error.Println("File read error: ", err)
123122
return err
124123
}
125-
126124
err = json.Unmarshal(bytes, &otpLogs)
127125
if err != nil {
128126
logger.Error.Println("Error unmarshaling into OTP ResourceLogs: ", err)
129127
return err
130128
}
131-
132129
for _, otl := range otpLogs {
133130
if !*running {
134131
break
135132
}
136133
records <- otl
137134
}
138-
139135
s.file.Close()
140136
if !*running {
141137
break
142138
}
143139
}
144-
145140
logger.Error.Println("Closing main channel")
146141
if records != nil {
147142
close(records)
@@ -152,7 +147,7 @@ func (s *FileDriver) Run(path string, running *bool) error {
152147

153148
// Cleanup tears down the driver resources.
154149
func (s *FileDriver) Cleanup() {
155-
fmt.Println("Exiting ", fileDriverName)
150+
logger.Trace.Println("Exiting ", fileDriverName)
156151
if s.file != nil {
157152
s.file.Close()
158153
}

driver/pipeline/pipeline.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ func (pl *Pipeline) AddChannel(channelName string, channel interface{}) {
8282
// Load loads and enables the pipeline
8383
func (pl *Pipeline) Load(driverName string) error {
8484
conf, err := pl.pluginCache.GetConfig()
85-
fmt.Printf("--Config drivers %s\n", conf.Drivers)
8685

8786
if err != nil {
8887
logger.Error.Println("Unable to load pipeline config: ", err)
@@ -100,8 +99,6 @@ func (pl *Pipeline) Load(driverName string) error {
10099
logger.Error.Println("Unable to load driver: ", err)
101100
return err
102101
}
103-
fmt.Printf("Adding driver in if %s\n", driverName)
104-
105102
pl.drivers = append(pl.drivers, driver)
106103
} else {
107104
for _, d := range conf.Drivers {

driver/pipeline/plugincache.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ func (p *PluginCache) GetConfig() (*Config, error) {
161161
}
162162
p.updateConfigFromEnv()
163163

164-
fmt.Printf("Config drivers %s\n", p.config.Drivers)
165-
166164
return p.config, nil
167165
}
168166

0 commit comments

Comments
 (0)