Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Miek Gieben <miek@miek.nl>
  • Loading branch information
miekg committed Jul 20, 2019
1 parent 04fb67b commit 77b9d45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/sign/sign.go
Expand Up @@ -31,5 +31,5 @@ const (
DurationSignatureExpireDays = 23 * 24 * time.Hour // sign for 23 days
DurationSignnaturInceptionHours = -3 * time.Hour // -(2+1) hours, be sure to catch daylight saving time and such
DurationRefreshHours = 5 * time.Hour
TimeFmt = "2006-01-02T15:04:05.000Z07:00"
timeFmt = "2006-01-02T15:04:05.000Z07:00"
)
4 changes: 2 additions & 2 deletions plugin/sign/signer.go
Expand Up @@ -167,9 +167,9 @@ func signAndLog(s *Signer) {
now := time.Now().UTC()
z, err := s.Sign(now)
if err != nil {
log.Warningf("Error signing %q with key tags %q in %s: %s. Schedule: %s", s.origin, keyTag(s.keys), time.Since(now), err, now.Add(DurationRefreshHours).Format(Timefmt))
log.Warningf("Error signing %q with key tags %q in %s: %s. Schedule: %s", s.origin, keyTag(s.keys), time.Since(now), err, now.Add(DurationRefreshHours).Format(timeFmt))
} else {
log.Infof("Signed %q with key tags %q in %s, saved in %q. Schedule: %s", s.origin, keyTag(s.keys), time.Since(now), filepath.Join(s.directory, s.signedfile), s.last.Add(DurationResignDays).Format(Timefmt))
log.Infof("Signed %q with key tags %q in %s, saved in %q. Schedule: %s", s.origin, keyTag(s.keys), time.Since(now), filepath.Join(s.directory, s.signedfile), s.last.Add(DurationResignDays).Format(timeFmt))
}
if err := s.write(z); err != nil {
log.Warningf("Failed to move zone file: %s", err)
Expand Down

0 comments on commit 77b9d45

Please sign in to comment.