Removes unneeded file access verbs. (#21852)

As it sais in the title.
-> If you need the logs files use either the WI, TGS, or the logging
infrastructure.

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Arrow768
2026-02-11 03:28:52 +00:00
committed by GitHub
co-authored by Werner
parent 8c052e1304
commit 1bf7a822f4
5 changed files with 58 additions and 112 deletions
-5
View File
@@ -30,7 +30,6 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list(
/client/proc/cmd_admin_delete, /*delete an instance/object/mob/etc*/
/client/proc/cmd_admin_check_contents, /*displays the contents of an instance*/
/datum/admins/proc/access_news_network, /*allows access of newscasters*/
/client/proc/getserverlog, /*allows us to fetch server logs (diary) for other days*/
/client/proc/jumptocoord, /*we ghost and jump to a coordinate*/
/client/proc/jumptozlevel,
/client/proc/jumptoshuttle,
@@ -188,7 +187,6 @@ GLOBAL_LIST_INIT(admin_verbs_server, list(
))
GLOBAL_LIST_INIT(admin_verbs_debug, list(
/client/proc/getruntimelog, // allows us to access runtime logs to somebody,
/client/proc/cmd_admin_list_open_jobs,
/client/proc/Debug2,
/client/proc/DebugToggle,
@@ -414,9 +412,7 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list(
/datum/admins/proc/set_odyssey_canonicity,
/client/proc/cmd_display_init_log,
/client/proc/cmd_generate_lag,
/client/proc/getruntimelog,
/client/proc/toggledebuglogs,
/client/proc/getserverlog,
/client/proc/view_chemical_reaction_logs,
/datum/admins/proc/capture_map,
/turf/proc/view_chunk,
@@ -489,7 +485,6 @@ GLOBAL_LIST_INIT(admin_verbs_dev, list( //will need to be altered - Ryan784
/client/proc/debug_controller,
/client/proc/debug_variables,
/client/proc/dsay,
/client/proc/getruntimelog,
/client/proc/hide_most_verbs,
/client/proc/kill_air,
/client/proc/kill_airgroup,
-55
View File
@@ -1,55 +0,0 @@
/*
HOW DO I LOG RUNTIMES?
Firstly, start dreamdeamon if it isn't already running. Then select "world>Log Session" (or press the F3 key)
navigate the popup window to the data/logs/runtime/ folder from where your tgstation .dmb is located.
(you may have to make this folder yourself)
OPTIONAL: you can select the little checkbox down the bottom to make dreamdeamon save the log everytime you
start a world. Just remember to repeat these steps with a new name when you update to a new revision!
Save it with the name of the revision your server uses (e.g. r3459.txt).
Game Masters will now be able to grant access any runtime logs you have archived this way!
This will allow us to gather information on bugs across multiple servers and make maintaining the TG
codebase for the entire /TG/station commuity a TONNE easier :3 Thanks for your help!
*/
/**
* Allows a client that has this proc to download the runtime logs of the current round
*/
/client/proc/getruntimelog()
set name = ".getruntimelog"
set desc = "Retrieve any session logfiles saved by dreamdeamon."
set category = null
var/path = LOGPATH(GLOB.config.logfiles["world_runtime_log"])
if(file_spam_check())
return
message_admins("[key_name_admin(src)] accessed file: [path]")
src << run( file(path) )
to_chat(src, "Attempting to send file, this may take a fair few minutes if the file is very large.")
//This proc allows download of past server logs saved within the data/logs/ folder.
//It works similarly to show-server-log.
/**
* Allows a client that has this proc the download of a log file of the active round
*
* Assigned only to admins currently
*/
/client/proc/getserverlog()
set name = ".getserverlog"
set desc = "Fetch logfiles from data/logs"
set category = null
var/path = browse_files(LOGPATH("")) //Prompt for which file to download, understands subfolders from files
if(!path)
return
if(file_spam_check())
return
message_admins("[key_name_admin(src)] accessed file: [path]")
src << run( file(path) )
to_chat(src, "Attempting to send file, this may take a fair few minutes if the file is very large.")