MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / extract_timestamp

Function extract_timestamp

webapp_modern.py:7009–7018  ·  view source on GitHub ↗
(log_line)

Source from the content-addressed store, hash-verified

7007 'error': (proc.stderr or proc.stdout or 'systemctl restart failed').strip()}), 500
7008 _, active = _sensing_unit_state()
7009 return jsonify({'success': True, 'active': active,
7010 'message': 'Sensing service restarted' + ('' if active else ' (not active — check logs)')})
7011
7012
7013@app.route('/api/sensing/install-log', methods=['GET'])
7014def sensing_install_log():
7015 """Return the live install/uninstall log and current service state."""
7016 log = ''
7017 try:
7018 with open(SENSING_INSTALL_LOG, 'r') as f:
7019 log = f.read()[-8000:]
7020 except FileNotFoundError:
7021 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected