fix(hooks): don't log full error stack when project settings not loaded (#1114)

Co-authored-by: Jason Carreira <jason@visotrust.com>
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Jason Carreira
2026-02-23 20:13:36 -05:00
committed by GitHub
parent 32cded7ca5
commit c58d5f1e07

View File

@@ -308,12 +308,11 @@ export function areHooksDisabled(
if (projectDisabled === true) {
return true;
}
} catch (error) {
} catch {
// Project settings not loaded, skip
debugLog(
"hooks",
"areHooksDisabled: Project settings not loaded, skipping",
error,
);
}
@@ -325,21 +324,19 @@ export function areHooksDisabled(
if (localDisabled === true) {
return true;
}
} catch (error) {
} catch {
// Local project settings not loaded, skip
debugLog(
"hooks",
"areHooksDisabled: Local project settings not loaded, skipping",
error,
);
}
return false;
} catch (error) {
} catch {
debugLog(
"hooks",
"areHooksDisabled: Failed to check hooks disabled status",
error,
);
return false;
}