diff options
| author | Jeff Carr <[email protected]> | 2025-03-21 23:43:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-22 09:45:41 -0500 |
| commit | fc82e095ef933d152bc8a627ff6f67a8589c1c6f (patch) | |
| tree | 7b514e6be9e007345498614033487db1a8543c7f /exit.go | |
| parent | b5925dcdce2f91c23f522a6541f628a2be3e3ece (diff) | |
show virtigod for nowv0.0.50
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +// Copyright 2017-2025 WIT.COM Inc. All rights reserved. +// Use of this source code is governed by the GPL 3.0 + +package main + +import ( + "os" + + "go.wit.com/log" +) + +func okExit(thing string) { + if thing != "" { + log.Info("zookeeper exit:", thing, "ok") + } + os.Exit(0) +} + +func badExit(err error) { + log.Info("zookeeper failed: ", err) + os.Exit(-1) +} |
