Removed debug calls

This commit is contained in:
2026-01-02 01:23:10 -05:00
parent c5a18b6346
commit 4145f9154c
3 changed files with 3 additions and 9 deletions

View File

@ -137,7 +137,7 @@ function display.selectionTabs()
paintutils.drawFilledBox(2, 2, 13, 6, colors.purple) paintutils.drawFilledBox(2, 2, 13, 6, colors.purple)
mon.setCursorPos(4, 4) mon.setCursorPos(4, 4)
mon.setBackgroundColor(colors.purple) mon.setBackgroundColor(colors.purple)
mon.write("Main Gates") mon.write("Dimension Gates")
end end
if #addresses.playerGates ~= 0 then if #addresses.playerGates ~= 0 then

View File

@ -389,7 +389,6 @@ local function handleIncomingWormhole()
-- Send version message to remote gate -- Send version message to remote gate
sleep(0.5) -- Brief delay to ensure connection is stable sleep(0.5) -- Brief delay to ensure connection is stable
utils.sendVersionMessage(PROGRAM_VERSION) utils.sendVersionMessage(PROGRAM_VERSION)
utils.debug("Sent: SGCS_V" .. PROGRAM_VERSION)
-- Handle iris -- Handle iris
if config.autoCloseIrisOnIncoming then if config.autoCloseIrisOnIncoming then
@ -403,7 +402,6 @@ local function handleIncomingWormhole()
-- Send password request if iris is closed and password system is enabled -- Send password request if iris is closed and password system is enabled
if config.irisPassword and config.enableMessaging then if config.irisPassword and config.enableMessaging then
utils.sendPasswordRequest() utils.sendPasswordRequest()
utils.debug("Sent: IRIS_PASSWORD_REQUIRED")
end end
end end
end end
@ -427,7 +425,6 @@ local function handleIncomingWormhole()
elseif (result == 3) then elseif (result == 3) then
-- Received a message -- Received a message
local message = state.lastReceivedMessage local message = state.lastReceivedMessage
utils.debug("Received: " .. tostring(message))
-- Check if it's a password attempt (don't log passwords in plaintext) -- Check if it's a password attempt (don't log passwords in plaintext)
if message:sub(1, 14) == "IRIS_PASSWORD:" then if message:sub(1, 14) == "IRIS_PASSWORD:" then
@ -665,8 +662,6 @@ local function handleOutgoingDial()
local message = state.lastReceivedMessage local message = state.lastReceivedMessage
state.lastReceivedMessage = nil state.lastReceivedMessage = nil
utils.debug("Received: " .. tostring(message))
if message and message:sub(1, 6) == "SGCS_V" then if message and message:sub(1, 6) == "SGCS_V" then
state.remoteHasComputer = true state.remoteHasComputer = true
local version = message:sub(7) local version = message:sub(7)
@ -730,7 +725,7 @@ local function handleOutgoingDial()
sleep(1) sleep(1)
elseif result then elseif result then
-- Password was entered, send it -- Password was entered, send it
utils.debug("Sent: IRIS_PASSWORD:" .. result) utils.sendPassword(result)
-- Wait for response -- Wait for response
local function WaitForResponse() local function WaitForResponse()
@ -812,7 +807,6 @@ local function handleOutgoingDial()
-- Only open local iris if connection is safe -- Only open local iris if connection is safe
if connectionSafe and config.irisEnabled then if connectionSafe and config.irisEnabled then
utils.debug("Opening local iris NOW")
utils.log("Connection safe - opening local iris") utils.log("Connection safe - opening local iris")
-- Wait 2 seconds to avoid voiding the iris -- Wait 2 seconds to avoid voiding the iris
sleep(2) sleep(2)

View File

@ -26,7 +26,7 @@ function utils.log(message)
local logEntry = "[" .. timestamp .. "] " .. message local logEntry = "[" .. timestamp .. "] " .. message
-- Write to console -- Write to console
-- print(logEntry) -- TEMPORARILY DISABLED print(logEntry)
-- Write to file -- Write to file
local file = fs.open(config.logFile, "a") local file = fs.open(config.logFile, "a")