summaryrefslogtreecommitdiff
path: root/plugins/service
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-05-05 16:39:22 +0300
committerValery Piashchynski <[email protected]>2021-05-05 16:39:22 +0300
commit4fa94bb7f73a705293c2afd40fc1151a3aaa04e2 (patch)
tree6ffd858cade87600bbd4432f70db22f50c598db0 /plugins/service
parent9ee78f937d5be67058882dd3590f89da35bca239 (diff)
- Initial broadcast commit
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/service')
-rw-r--r--plugins/service/process.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/service/process.go b/plugins/service/process.go
index 74aa789c..cac5c41e 100644
--- a/plugins/service/process.go
+++ b/plugins/service/process.go
@@ -7,10 +7,10 @@ import (
"sync/atomic"
"syscall"
"time"
- "unsafe"
"github.com/spiral/errors"
"github.com/spiral/roadrunner/v2/plugins/logger"
+ "github.com/spiral/roadrunner/v2/utils"
)
// Process structure contains an information about process, restart information, log, errors, etc
@@ -50,7 +50,7 @@ func NewServiceProcess(restartAfterExit bool, execTimeout time.Duration, restart
// write message to the log (stderr)
func (p *Process) Write(b []byte) (int, error) {
- p.log.Info(toString(b))
+ p.log.Info(utils.AsString(b))
return len(b), nil
}