MCPcopy
hub / github.com/stravu/crystal / log

Method log

frontend/src/utils/gitStatusLogger.ts:22–51  ·  view source on GitHub ↗

* Log git status operations with appropriate verbosity

(context: GitStatusLogContext)

Source from the content-addressed store, hash-verified

20 * Log git status operations with appropriate verbosity
21 */
22 log(context: GitStatusLogContext): void {
23 const now = Date.now();
24
25 // Throttle repeated update logs
26 if (context.operation === 'update' && now - this.lastLogTime < this.LOG_THROTTLE_MS) {
27 this.updateCount++;
28 return;
29 }
30
31 // Flush any accumulated updates
32 if (this.updateCount > 0) {
33 this.updateCount = 0;
34 }
35
36 this.lastLogTime = now;
37
38 switch (context.operation) {
39 case 'poll':
40 break;
41
42 case 'refresh':
43 break;
44
45 case 'update':
46 break;
47
48 case 'load':
49 break;
50 }
51 }
52
53 /**
54 * Log errors with deduplication

Callers 15

handleVersionUpdateFunction · 0.45
DraggableProjectTreeViewFunction · 0.45
handleSessionCreatedFunction · 0.45
handleFolderUpdatedFunction · 0.45
handleFolderDeletedFunction · 0.45
handleDeleteFolderFunction · 0.45
detectCurrentBranchFunction · 0.45
handleCreateFolderFunction · 0.45
handleProjectDropFunction · 0.45
handleFolderDropFunction · 0.45
loadPreferenceFunction · 0.45
DiscordPopupFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected