Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iota-imt
goshimmer
Commits
495fae2c
Commit
495fae2c
authored
5 years ago
by
Luca Moser
Browse files
Options
Downloads
Patches
Plain Diff
fixes args in formatted prints
parent
aa210a54
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/analysis/server/plugin.go
+1
-1
1 addition, 1 deletion
plugins/analysis/server/plugin.go
plugins/gracefulshutdown/plugin.go
+2
-2
2 additions, 2 deletions
plugins/gracefulshutdown/plugin.go
with
3 additions
and
3 deletions
plugins/analysis/server/plugin.go
+
1
−
1
View file @
495fae2c
...
...
@@ -27,7 +27,7 @@ func Configure(plugin *node.Plugin) {
server
.
Events
.
Connect
.
Attach
(
events
.
NewClosure
(
HandleConnection
))
server
.
Events
.
Error
.
Attach
(
events
.
NewClosure
(
func
(
err
error
)
{
log
.
Error
(
"error in server: %s"
,
err
.
Error
())
log
.
Error
f
(
"error in server: %s"
,
err
.
Error
())
}))
server
.
Events
.
Start
.
Attach
(
events
.
NewClosure
(
func
()
{
log
.
Infof
(
"Starting Server (port %d) ... done"
,
parameter
.
NodeConfig
.
GetInt
(
CFG_SERVER_PORT
))
...
...
This diff is collapsed.
Click to expand it.
plugins/gracefulshutdown/plugin.go
+
2
−
2
View file @
495fae2c
package
gracefulshutdown
import
(
"github.com/iotaledger/hive.go/logger"
"os"
"os/signal"
"strings"
...
...
@@ -9,6 +8,7 @@ import (
"time"
"github.com/iotaledger/hive.go/daemon"
"github.com/iotaledger/hive.go/logger"
"github.com/iotaledger/hive.go/node"
)
...
...
@@ -38,7 +38,7 @@ var PLUGIN = node.NewPlugin("Graceful Shutdown", node.Enabled, func(plugin *node
if
len
(
runningBackgroundWorkers
)
>=
1
{
processList
=
"("
+
strings
.
Join
(
runningBackgroundWorkers
,
", "
)
+
") "
}
log
.
Warningf
(
"Received shutdown request - waiting (max %d seconds) to finish processing ..."
,
WAIT_TO_KILL_TIME_IN_SECONDS
-
int
(
secondsSinceStart
),
processList
)
log
.
Warningf
(
"Received shutdown request - waiting (max %d seconds) to finish processing
%s
..."
,
WAIT_TO_KILL_TIME_IN_SECONDS
-
int
(
secondsSinceStart
),
processList
)
}
else
{
log
.
Error
(
"Background processes did not terminate in time! Forcing shutdown ..."
)
os
.
Exit
(
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment