MCPcopy Create free account
hub / github.com/apache/cloudstack / __cleanPreviousLogs

Method __cleanPreviousLogs

tools/marvin/marvin/marvinLog.py:99–112  ·  view source on GitHub ↗

@Name : __cleanPreviousLogs @Desc : Removes the Previous Logs @Return: N\A @Input: logfolder_to_remove: Path of Log to remove

(self, logfolder_to_remove)

Source from the content-addressed store, hash-verified

97 return FAILED
98
99 def __cleanPreviousLogs(self, logfolder_to_remove):
100 '''
101 @Name : __cleanPreviousLogs
102 @Desc : Removes the Previous Logs
103 @Return: N\A
104 @Input: logfolder_to_remove: Path of Log to remove
105 '''
106 try:
107 if os.path.isdir(logfolder_to_remove):
108 os.rmdir(logfolder_to_remove)
109 except Exception as e:
110 print("\n Exception Occurred Under __cleanPreviousLogs :%s" % \
111 GetDetailExceptionInfo(e))
112 return FAILED
113
114 def getLogger(self):
115 '''

Callers

nothing calls this directly

Calls 1

GetDetailExceptionInfoFunction · 0.90

Tested by

no test coverage detected