* Log git status operations with appropriate verbosity
(context: GitStatusLogContext)
| 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 |
no outgoing calls
no test coverage detected