dashcam 1.3.16-beta → 1.3.17-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -161,6 +161,10 @@ class ProcessManager {
161
161
  }
162
162
 
163
163
  isRecordingActive() {
164
+ console.log('[DEBUG] Checking if recording is active...');
165
+ console.log('[DEBUG] Status file path:', STATUS_FILE);
166
+ console.log('[DEBUG] Status file exists:', fs.existsSync(STATUS_FILE));
167
+
164
168
  logger.debug('Checking if recording is active...', {
165
169
  statusFile: STATUS_FILE,
166
170
  processDir: PROCESS_DIR,
@@ -169,6 +173,8 @@ class ProcessManager {
169
173
 
170
174
  const status = this.readStatus();
171
175
 
176
+ console.log('[DEBUG] Status read result:', status);
177
+
172
178
  logger.debug('Status check result', {
173
179
  hasStatus: !!status,
174
180
  hasPid: !!(status && status.pid),
@@ -178,23 +184,27 @@ class ProcessManager {
178
184
  });
179
185
 
180
186
  if (!status) {
187
+ console.log('[DEBUG] No status found - recording not active');
181
188
  logger.debug('No status found - recording not active');
182
189
  return false;
183
190
  }
184
191
 
185
192
  if (!status.pid) {
193
+ console.log('[DEBUG] Status has no PID - marking as completed');
186
194
  logger.debug('Status has no PID - marking as completed');
187
195
  this.markStatusCompleted({ reason: 'no_pid_in_status' });
188
196
  return false;
189
197
  }
190
198
 
191
199
  const processRunning = this.isProcessRunning(status.pid);
200
+ console.log('[DEBUG] Process running check:', { pid: status.pid, isRunning: processRunning });
192
201
  logger.debug('Process running check', {
193
202
  pid: status.pid,
194
203
  isRunning: processRunning
195
204
  });
196
205
 
197
206
  if (!processRunning) {
207
+ console.log('[DEBUG] Process not running - marking as completed:', { pid: status.pid });
198
208
  logger.debug('Process not running - marking as completed', {
199
209
  pid: status.pid,
200
210
  wasRecording: status.isRecording
@@ -207,6 +217,7 @@ class ProcessManager {
207
217
  return false;
208
218
  }
209
219
 
220
+ console.log('[DEBUG] Recording active status:', { isRecording: status.isRecording, pid: status.pid });
210
221
  logger.debug('Recording active status', {
211
222
  isRecording: status.isRecording,
212
223
  pid: status.pid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashcam",
3
- "version": "1.3.16-beta",
3
+ "version": "1.3.17-beta",
4
4
  "description": "Minimal CLI version of Dashcam desktop app",
5
5
  "main": "bin/dashcam.js",
6
6
  "bin": {