mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-17 02:47:58 +01:00
UDP Logging (#1997)
This implements UDP Logging with GELF. It will allow full text search over all the logs and attributes sent over GELF to the log server.
This commit is contained in:
@@ -16,7 +16,7 @@ var/global/ntnrc_uid = 0
|
||||
..()
|
||||
|
||||
/datum/ntnet_conversation/proc/add_message(var/message, var/username, var/mob/user)
|
||||
log_ntirc("[user.client.ckey]/([username]) : [message]")
|
||||
log_ntirc("[user.client.ckey]/([username]) : [message]",ckey=key_name(user),conversation=title)
|
||||
|
||||
message = "[worldtime2text()] [username]: [message]"
|
||||
messages.Add(message)
|
||||
|
||||
@@ -35,11 +35,8 @@
|
||||
check_update_ui_need()
|
||||
|
||||
/obj/item/modular_computer/proc/get_preset_programs(var/app_preset_name)
|
||||
log_debug("=== Searchng for matching preset")
|
||||
for (var/datum/modular_computer_app_presets/prs in ntnet_global.available_software_presets)
|
||||
log_debug("comparing preset [prs.name]")
|
||||
if(prs.name == app_preset_name)
|
||||
log_debug("preset matched")
|
||||
return prs.return_install_programs()
|
||||
|
||||
// Used to perform preset-specific hardware changes.
|
||||
@@ -49,10 +46,8 @@
|
||||
// Used to install preset-specific programs
|
||||
/obj/item/modular_computer/proc/install_default_programs()
|
||||
if(enrolled)
|
||||
log_debug("=== Calling install programs for preset [_app_preset_name]")
|
||||
var/programs = get_preset_programs(_app_preset_name)
|
||||
for (var/datum/computer_file/program/prog in programs)
|
||||
log_debug("Installing prog [prog.filename]")
|
||||
hard_drive.store_file(prog)
|
||||
|
||||
/obj/item/modular_computer/New()
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
return
|
||||
Syndicate_announce(input, usr)
|
||||
usr << "<span class='notice'>Message transmitted.</span>"
|
||||
log_say("[key_name(usr)] has made an illegal announcement: [input]")
|
||||
log_say("[key_name(usr)] has made an illegal announcement: [input]",ckey=key_name(usr))
|
||||
centcomm_message_cooldown = 1
|
||||
spawn(300)//30 second cooldown
|
||||
centcomm_message_cooldown = 0
|
||||
@@ -167,7 +167,7 @@
|
||||
return
|
||||
Centcomm_announce(input, usr)
|
||||
usr << "<span class='notice'>Message transmitted.</span>"
|
||||
log_say("[key_name(usr)] has made an IA [boss_short] announcement: [input]")
|
||||
log_say("[key_name(usr)] has made an IA [boss_short] announcement: [input]",ckey=key_name(usr))
|
||||
centcomm_message_cooldown = 1
|
||||
spawn(300) //30 second cooldown
|
||||
centcomm_message_cooldown = 0
|
||||
@@ -210,7 +210,7 @@
|
||||
if(current_level > SEC_LEVEL_BLUE) current_level = SEC_LEVEL_BLUE //Cannot engage delta with this
|
||||
set_security_level(current_level)
|
||||
if(security_level != old_level)
|
||||
log_game("[key_name(usr)] has changed the security level to [get_security_level()].")
|
||||
log_game("[key_name(usr)] has changed the security level to [get_security_level()].",ckey=key_name(usr))
|
||||
message_admins("[key_name_admin(usr)] has changed the security level to [get_security_level()].")
|
||||
switch(security_level)
|
||||
if(SEC_LEVEL_GREEN)
|
||||
@@ -257,7 +257,7 @@
|
||||
if("message")
|
||||
status_signal.data["msg1"] = data1
|
||||
status_signal.data["msg2"] = data2
|
||||
log_admin("STATUS: [key_name(usr)] set status screen message with [src]: [data1] [data2]")
|
||||
log_admin("STATUS: [key_name(usr)] set status screen message with [src]: [data1] [data2]",ckey=key_name(usr))
|
||||
if("alert")
|
||||
status_signal.data["picture_state"] = data1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user