Remove unnecessary prints in systemdump code
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
Change-Id: I9cae374a4029a25de00f869cd6cb468082356fe0
diff --git a/thalerj/openbmctool.py b/thalerj/openbmctool.py
index 599555e..4786f81 100755
--- a/thalerj/openbmctool.py
+++ b/thalerj/openbmctool.py
@@ -87,7 +87,6 @@
data = self.conn.sock.recv(MAX_NBD_PACKET_SIZE)
print("<<HTTP")
- #print(len(data))
if data:
self.tcp.send(data)
else:
@@ -98,7 +97,6 @@
elif s is self.tcp:
data = self.tcp.recv(MAX_NBD_PACKET_SIZE)
print(">>TCP")
- #print(len(data));
if data:
self.conn.sock.send(data)
else:
@@ -113,12 +111,10 @@
def getsize(host,args,session):
url = "https://"+host+"/redfish/v1/Systems/system/LogServices/SystemDump/Entries/"+str(args.dumpNum)
- print(url)
try:
resp = session.get(url, headers=jsonHeader, verify=False, timeout=baseTimeout)
if resp.status_code==200:
size = resp.json()["Oem"]["OpenBmc"]['SizeInB']
- print(size)
return size
else:
return "Failed get Size"
@@ -152,7 +148,6 @@
ps.stdout.close()
ps.wait()
pid = get_pid(process_name)
- print(pid)
return output
def isThisProcessRunning( process_name ):
@@ -167,7 +162,6 @@
if user is None:
path = os.getcwd()
nbdServerPath = path + "/nbd-server"
- print(nbdServerPath,os.path.exists(nbdServerPath))
if not os.path.exists(nbdServerPath):
print("Error: this program did not run as sudo!\nplease copy nbd-server to current directory and run script again")
exit()
@@ -185,7 +179,6 @@
sizeInBytes = getsize(host,args,session)
#Round off size to mutiples of 1024
size = int(sizeInBytes)
- print(size)
mod = size % 1024
if mod :
roundoff = 1024 - mod