Skip to content

Commit

Permalink
remove extra prints, the error did not trigger again
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Apr 15, 2021
1 parent 4f0e3d1 commit 3cce6d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/spack/llnl/util/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,13 @@ def _read_log_debug_data(self):
"""Read PID and host data out of the file if it is there."""
self.old_pid = self.pid
self.old_host = self.host
print(self.host)

line = self._file.read()
if line:
pid, host = line.strip().split(',')
_, _, self.pid = pid.rpartition('=')
_, _, self.host = host.rpartition('=')
self.pid = int(self.pid)
print(self.host)

def _write_log_debug_data(self):
"""Write PID and host data to the file, recording old values."""
Expand All @@ -266,7 +265,6 @@ def _write_log_debug_data(self):

self.pid = os.getpid()
self.host = socket.getfqdn()
print(self.host)

# write pid, host to disk to sync over FS
self._file.seek(0)
Expand Down

0 comments on commit 3cce6d4

Please sign in to comment.