MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / getLogSoftwareSettings

Function getLogSoftwareSettings

src/astroprint/api/settings.py:485–494  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

483@api.route("/settings/software/logs", methods=["GET"])
484@restricted_access
485def getLogSoftwareSettings():
486 s = settings()
487 pm = platformManager()
488
489 #Get files in the logs directory
490
491 return jsonify(
492 serialActivated= s.getBoolean(['serial', 'log']),
493 files= pm.listLogs()
494 )
495
496@api.route("/settings/software/advanced/apikey", methods=["PUT"])
497@restricted_access

Callers

nothing calls this directly

Calls 4

settingsFunction · 0.90
platformManagerFunction · 0.90
getBooleanMethod · 0.80
listLogsMethod · 0.80

Tested by

no test coverage detected