Reduce frequency of logging timestamps

This commit is contained in:
Arjan H
2021-05-22 11:14:38 +02:00
parent ab1a67bb64
commit 08bd21ebea
2 changed files with 16 additions and 0 deletions

13
cmd_shell.patch Normal file
View File

@@ -0,0 +1,13 @@
diff --git a/cmd/shell.go b/cmd/shell.go
index d63c8a97..52c38a5b 100644
--- a/cmd/shell.go
+++ b/cmd/shell.go
@@ -185,7 +185,7 @@ func NewLogger(logConf SyslogConfig) blog.Logger {
// Boulder's conception of time.
go func() {
for {
- time.Sleep(time.Minute)
+ time.Sleep(15*time.Minute)
logger.Info(fmt.Sprintf("time=%s", time.Now().Format(time.RFC3339Nano)))
}
}()

View File

@@ -520,6 +520,9 @@ config_boulder() {
sudo -u labca -H patch -p1 < $cloneDir/docker-compose.patch &>>$installLog
cp docker-compose.yml "$boulderLabCADir/.backup/"
sudo -u labca -H patch -p1 < $cloneDir/cmd_shell.patch &>>$installLog
cp cmd/shell.go "$boulderLabCADir/.backup/"
sudo -u labca -H patch -p1 < $cloneDir/core_interfaces.patch &>>$installLog
cp core/interfaces.go "$boulderLabCADir/.backup/"