diff --git a/zUtil_DataStructures/GtLockDB.m b/zUtil_DataStructures/GtLockDB.m index bcb7d25ea46a911a23719acf584b0b7cf980b786..b7fe4287c6b3dbbe4d0805ae7b269794827e8452 100644 --- a/zUtil_DataStructures/GtLockDB.m +++ b/zUtil_DataStructures/GtLockDB.m @@ -28,6 +28,7 @@ classdef GtLockDB < handle if (~exist('timeout', 'var')) timeout = 0; end + first_time = true; if ~obj.hasLock counter = 0; test = 0; @@ -39,6 +40,10 @@ classdef GtLockDB < handle %gtPrintException(mexc) obj.hasLock = false; test = false; + if (first_time) + first_time = false; + fprintf('Locked file: %s (from table %s)', obj.filename, obj.filetable) + end end if test