From 7978606c0e2592b828e47d7c94d3c8afc7923bc8 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 21 Nov 2014 14:22:12 +0800 Subject: [PATCH] adjust logging level --- output/processes.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/output/processes.go b/output/processes.go index a2a3c4e..6572589 100644 --- a/output/processes.go +++ b/output/processes.go @@ -1,11 +1,11 @@ // Copyright (c) 2014, B3log -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -47,7 +47,7 @@ func (procs *procs) add(wSession *session.WideSession, proc *os.Process) { // bind process with wide session wSession.SetProcesses(userProcesses) - glog.V(3).Infof("Session [%s] has [%d] processes", sid, len((*procs)[sid])) + glog.V(5).Infof("Session [%s] has [%d] processes", sid, len((*procs)[sid])) } // remove removes the specified process from the user process set. @@ -68,7 +68,7 @@ func (procs *procs) remove(wSession *session.WideSession, proc *os.Process) { // bind process with wide session wSession.SetProcesses(newProcesses) - glog.V(3).Infof("Session [%s] has [%d] processes", sid, len((*procs)[sid])) + glog.V(5).Infof("Session [%s] has [%d] processes", sid, len((*procs)[sid])) return } @@ -97,7 +97,7 @@ func (procs *procs) kill(wSession *session.WideSession, pid int) { // bind process with wide session wSession.SetProcesses(newProcesses) - glog.V(3).Infof("Killed a process [pid=%d] of session [%s]", pid, sid) + glog.V(5).Infof("Killed a process [pid=%d] of session [%s]", pid, sid) } return