vdrive.py: log a note when we successfully retrieve the global root directory
This commit is contained in:
parent
0826b1bd34
commit
4db205b8b3
|
@ -45,10 +45,12 @@ class VirtualDrive(service.MultiService):
|
||||||
self._global_uri = f.read().strip()
|
self._global_uri = f.read().strip()
|
||||||
f.close()
|
f.close()
|
||||||
elif global_vdrive_furl:
|
elif global_vdrive_furl:
|
||||||
|
self.parent.log("fetching global_uri")
|
||||||
d = tub.getReference(global_vdrive_furl)
|
d = tub.getReference(global_vdrive_furl)
|
||||||
d.addCallback(lambda vdrive_server:
|
d.addCallback(lambda vdrive_server:
|
||||||
vdrive_server.callRemote("get_public_root_uri"))
|
vdrive_server.callRemote("get_public_root_uri"))
|
||||||
def _got_global_uri(global_uri):
|
def _got_global_uri(global_uri):
|
||||||
|
self.parent.log("got global_uri")
|
||||||
self._global_uri = global_uri
|
self._global_uri = global_uri
|
||||||
f = open(global_uri_file, "w")
|
f = open(global_uri_file, "w")
|
||||||
f.write(self._global_uri + "\n")
|
f.write(self._global_uri + "\n")
|
||||||
|
|
Loading…
Reference in New Issue