@@ -32,8 +32,8 @@ func MigrateToEncryptedConfig(ctx context.Context, l *logp.Logger, unencryptedCo
32
32
33
33
unencStat , unencFileErr := os .Stat (unencryptedConfigPath )
34
34
35
- l .Debugf (fmt . Sprintf ( "checking stat of enc config %q: %+v, err: %v" , encryptedConfigPath , encStat , encFileErr ) )
36
- l .Debugf (fmt . Sprintf ( "checking stat of unenc config %q: %+v, err: %v" , unencryptedConfigPath , unencStat , unencFileErr ) )
35
+ l .Debugf ("checking stat of enc config %q: %+v, err: %v" , encryptedConfigPath , encStat , encFileErr )
36
+ l .Debugf ("checking stat of unenc config %q: %+v, err: %v" , unencryptedConfigPath , unencStat , unencFileErr )
37
37
38
38
isEncryptedConfigEmpty := errors .Is (encFileErr , fs .ErrNotExist ) || encStat .Size () == 0
39
39
isUnencryptedConfigPresent := unencFileErr == nil && unencStat .Size () > 0
@@ -54,7 +54,7 @@ func MigrateToEncryptedConfig(ctx context.Context, l *logp.Logger, unencryptedCo
54
54
defer func () {
55
55
err = reader .Close ()
56
56
if err != nil {
57
- l .Errorf (fmt . Sprintf ( "Error closing unencrypted store reader for %q: %v" , unencryptedConfigPath , err ) )
57
+ l .Errorf ("Error closing unencrypted store reader for %q: %v" , unencryptedConfigPath , err )
58
58
}
59
59
}()
60
60
store , err := storage .NewEncryptedDiskStore (ctx , encryptedConfigPath , storageOpts ... )
0 commit comments