Skip to content

Commit

Permalink
调整日志删除
Browse files Browse the repository at this point in the history
  • Loading branch information
吴迎松 committed May 15, 2018
1 parent 881b0c4 commit 4d7485a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/agent.go
Expand Up @@ -121,7 +121,7 @@ func (agent *Agent) sendSyncPluginRequest(p types.Plugin) error {

// 发送主机配置信息
func (agent *Agent) register() error {
lg.Debug("send host config %v", agent.hostcfg)
lg.Debug("send host config %+v", agent.hostcfg)
return agent.cfc.AsyncWritePacket(
tcp.NewDefaultPacket(
types.MsgAgentRegister,
Expand Down
2 changes: 1 addition & 1 deletion common/types/plugin.go
Expand Up @@ -42,7 +42,7 @@ func (plugin *Plugin) Decode(data []byte) error {
}

func (plugin Plugin) String() string {
return fmt.Sprintf("{id:%d, name:%s, path:%s, args:%s, interval:%d, timeout:%d, checksum:%s}",
return fmt.Sprintf(`{"id":%d, "name":"%s", "path":"%s", "args":"%s", "interval":%d, "timeout":%d, "checksum":"%s"}`,
plugin.ID,
plugin.Name,
plugin.Path,
Expand Down

0 comments on commit 4d7485a

Please sign in to comment.