File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ func (c *Configuration) Load() error {
210
210
c .storage = & StorageYML {}
211
211
if err = c .storage .Load (c .HAProxy .DataplaneConfig ); err != nil {
212
212
if errors .Is (err , fs .ErrNotExist ) {
213
- log . Warningf ("configuration file %s does not exists, creating one" , c .HAProxy .DataplaneConfig )
213
+ fmt . Printf ("configuration file %s does not exists, creating one\n " , c .HAProxy .DataplaneConfig )
214
214
} else {
215
215
return fmt .Errorf ("configuration file %s not valid (only yaml format is supported): %w" , c .HAProxy .DataplaneConfig , err )
216
216
}
@@ -229,7 +229,7 @@ func (c *Configuration) Load() error {
229
229
if c .Name .Load () == "" {
230
230
hostname , nameErr := os .Hostname ()
231
231
if nameErr != nil {
232
- log . Warningf ("Error fetching hostname, using petname for dataplaneapi name: %s" , nameErr .Error ())
232
+ fmt . Printf ("Error fetching hostname, using petname for dataplaneapi name: %s\n " , nameErr .Error ())
233
233
c .Name .Store (petname .Generate (2 , "_" ))
234
234
}
235
235
c .Name .Store (hostname )
You can’t perform that action at this time.
0 commit comments