瀏覽代碼

dev: add more information to lock logs

KernelDeimos 3 月之前
父節點
當前提交
74319b44af
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      src/backend/src/filesystem/ll_operations/ll_mkdir.js

+ 8 - 2
src/backend/src/filesystem/ll_operations/ll_mkdir.js

@@ -37,13 +37,19 @@ class LLMkdir extends LLFilesystemOperation {
         this.checkpoint('lock requested');
         this.log.noticeme('GET FSLOCK');
         const svc_fslock = context.get('services').get('fslock');
-        this.log.noticeme('REQUESTING LOCK');
+        this.log.noticeme('REQUESTING LOCK', {
+            parent: await parent.get('path'),
+            name,
+        });
         const lock_handle = await svc_fslock.lock_child(
             await parent.get('path'),
             name,
             MODE_WRITE,
         );
-        this.log.noticeme('GOT LOCK');
+        this.log.noticeme('GOT LOCK', {
+            parent: await parent.get('path'),
+            name,
+        });
         this.checkpoint('lock acquired');
 
         try {