Skip to content

Commit c2e37f3

Browse files
committed
bug fix: wp staging
1 parent b595576 commit c2e37f3

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

plogical/applicationInstaller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def __init__(self, installApp, extraArgs):
2727
multi.Thread.__init__(self)
2828
self.installApp = installApp
2929
self.extraArgs = extraArgs
30-
self.tempStatusPath = self.extraArgs['tempStatusPath']
30+
if extraArgs != None:
31+
self.tempStatusPath = self.extraArgs['tempStatusPath']
3132

3233
def run(self):
3334
try:

plogical/processUtilities.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ def sendCommand(command, user=None):
187187
sock = ret[0]
188188

189189
if user == None:
190-
logging.writeToFile(ProcessUtilities.token + command)
190+
#logging.writeToFile(ProcessUtilities.token + command)
191191
sock.sendall((ProcessUtilities.token + command).encode('utf-8'))
192192
else:
193193
command = '%s-u %s %s' % (ProcessUtilities.token, user, command)
194194
command = command.replace('sudo', '')
195-
logging.writeToFile(ProcessUtilities.token + command)
195+
#logging.writeToFile(ProcessUtilities.token + command)
196196
sock.sendall(command.encode('utf-8'))
197197

198198
data = ""
@@ -207,7 +207,7 @@ def sendCommand(command, user=None):
207207
logging.writeToFile('Some data could not be decoded to str, error message: %s' % str(msg))
208208

209209
sock.close()
210-
logging.writeToFile('Final data: %s.' % (str(data)))
210+
#logging.writeToFile('Final data: %s.' % (str(data)))
211211

212212
return data
213213
except BaseException as msg:

websiteFunctions/StagingSetup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def startCloning(self):
8888

8989
data = open(configPath, 'r').readlines()
9090

91+
logging.writeToFile(str(type(data)))
92+
9193
for items in data:
9294
if items.find('DB_NAME') > -1:
9395
try:
@@ -161,7 +163,7 @@ def startCloning(self):
161163

162164
return 0
163165
except BaseException as msg:
164-
mesg = '%s. [404]' % (str(msg))
166+
mesg = '%s. [168][404]' % (str(msg))
165167
logging.statusWriter(self.tempStatusPath, mesg)
166168

167169
def startSyncing(self):

0 commit comments

Comments
 (0)