Files
Aurora.3/code/__HELPERS/logging/subsystems/persistence.dm
FabianK3andGitHub aff736cda2 Persistence code refactoring (#22044)
# Summary

This PR refactores code and structure of the current persistence
subsystem, in preparation for Persistency: Circles, Squares and
Triangles.

This should not contain any user facing changes.

~~This PR is based of branch #21925 and **needs** to be merged in order.
The files changed display will be meaningless until then.~~ *Done.*

## Changes

- Split subsystem in partial files.
- Refactored proc names, added "persistentObject" format for current
code.
- Renamed SQL table.
- Refactored logging and call hiearachy.
- Fix CI labeler adding DB label on non-SQL files.
2026-03-24 19:53:37 +01:00

20 lines
631 B
Plaintext

/proc/log_subsystem_persistence(text)
#if defined(UNIT_TEST)
LOG_GITHUB_DEBUG("SSPersistence: [text]")
#else
if (GLOB.config?.logsettings["log_subsystems_persistence"])
WRITE_LOG(GLOB.config.logfiles["world_subsystems_persistence_log"], "SSPersistence: [text]")
#endif
/proc/log_subsystem_persistence_info(text)
log_subsystem_persistence("INFO: [text]")
/proc/log_subsystem_persistence_warning(text)
log_subsystem_persistence("WARNING: [text]")
/proc/log_subsystem_persistence_error(text)
log_subsystem_persistence("ERROR: [text]")
/proc/log_subsystem_persistence_panic(text)
log_subsystem_persistence("PANIC: [text]")