diff --git a/mods/mods_available/example-singlefile.js b/mods/mods_available/example-singlefile.js index 2d0995e7..f1aab3fd 100644 --- a/mods/mods_available/example-singlefile.js +++ b/mods/mods_available/example-singlefile.js @@ -22,5 +22,5 @@ extension.get('/example-onefile-get', (req, res) => { }); extension.on('install', ({ services }) => { - console.log('install was called'); + // console.log('install was called'); }) diff --git a/mods/mods_available/example/main.js b/mods/mods_available/example/main.js index 727faf50..b5f84ef8 100644 --- a/mods/mods_available/example/main.js +++ b/mods/mods_available/example/main.js @@ -22,5 +22,5 @@ extension.get('/example-mod-get', (req, res) => { }); extension.on('install', ({ services }) => { - console.log('install was called'); + // console.log('install was called'); }) diff --git a/src/backend/src/helpers.js b/src/backend/src/helpers.js index 3f9e23a7..121c44b5 100644 --- a/src/backend/src/helpers.js +++ b/src/backend/src/helpers.js @@ -43,7 +43,6 @@ async function is_empty(dir_uuid){ if ( typeof dir_uuid === 'object' ) { if ( typeof dir_uuid.path === 'string' && dir_uuid.path !== '' ) { - console.log('it is the path branch'); rows = await db.read( `SELECT EXISTS(SELECT 1 FROM fsentries WHERE path LIKE ${db.case({ sqlite: `? || '%'`, @@ -55,7 +54,6 @@ async function is_empty(dir_uuid){ } if ( typeof dir_uuid === 'string' ) { - console.log('it is the uuid branchj'); rows = await db.read( `SELECT EXISTS(SELECT 1 FROM fsentries WHERE parent_uid = ? LIMIT 1) AS not_empty`, [dir_uuid] diff --git a/src/backend/src/modules/captcha/CaptchaModule.js b/src/backend/src/modules/captcha/CaptchaModule.js index 5c3fb006..d91a64dc 100644 --- a/src/backend/src/modules/captcha/CaptchaModule.js +++ b/src/backend/src/modules/captcha/CaptchaModule.js @@ -31,27 +31,12 @@ const CaptchaService = require('./services/CaptchaService'); */ class CaptchaModule extends AdvancedBase { async install(context) { - console.log('DIAGNOSTIC: CaptchaModule.install - Start of method'); // Get services from context const services = context.get('services'); - if (!services) { - throw new Error('Services not available in context'); - } // Register the captcha service - console.log('DIAGNOSTIC: CaptchaModule.install - Before service registration'); services.registerService('captcha', CaptchaService); - console.log('DIAGNOSTIC: CaptchaModule.install - After service registration'); - - // Log the captcha service status - try { - const captchaService = services.get('captcha'); - console.log(`Captcha service registered and ${captchaService.enabled ? 'enabled' : 'disabled'}`); - console.log('TOKENS_TRACKING: Retrieved CaptchaService instance with ID:', captchaService.serviceId); - } catch (error) { - console.error('Failed to get captcha service after registration:', error); - } } } diff --git a/src/backend/src/modules/captcha/services/CaptchaService.js b/src/backend/src/modules/captcha/services/CaptchaService.js index 13e0b03b..e19b0bdb 100644 --- a/src/backend/src/modules/captcha/services/CaptchaService.js +++ b/src/backend/src/modules/captcha/services/CaptchaService.js @@ -34,8 +34,6 @@ class CaptchaService extends BaseService { * Initializes the captcha service with configuration and storage */ async _construct() { - console.log('DIAGNOSTIC: CaptchaService._construct called'); - // Load dependencies this.crypto = require('crypto'); this.svgCaptcha = require('svg-captcha'); @@ -47,22 +45,12 @@ class CaptchaService extends BaseService { this.serviceId = Math.random().toString(36).substring(2, 10); this.requestCounter = 0; - console.log('TOKENS_TRACKING: CaptchaService instance created with ID:', this.serviceId); - console.log('TOKENS_TRACKING: Process ID:', process.pid); - // Get configuration from service config this.enabled = this.config.enabled === true; this.expirationTime = this.config.expirationTime || (10 * 60 * 1000); // 10 minutes default this.difficulty = this.config.difficulty || 'medium'; this.testMode = this.config.testMode === true; - console.log('CAPTCHA DIAGNOSTIC: Service initialized with config:', { - enabled: this.enabled, - expirationTime: this.expirationTime, - difficulty: this.difficulty, - testMode: this.testMode - }); - // Add a static test token for diagnostic purposes this.captchaTokens.set('test-static-token', { text: 'testanswer', @@ -82,8 +70,6 @@ class CaptchaService extends BaseService { * Sets up API endpoints and cleanup tasks */ async _init() { - console.log('TOKENS_TRACKING: CaptchaService._init called. Service ID:', this.serviceId); - if (!this.enabled) { this.log.info('Captcha service is disabled'); return; @@ -298,9 +284,6 @@ class CaptchaService extends BaseService { // Test endpoint to validate token lifecycle app.get('/api/captcha/test-lifecycle', (req, res) => { try { - console.log('TOKENS_TRACKING: Running token lifecycle test. Service ID:', this.serviceId); - console.log('TOKENS_TRACKING: Initial token count:', this.captchaTokens.size); - // Create a test captcha const testText = 'test123'; const testToken = 'lifecycle-' + this.crypto.randomBytes(16).toString('hex'); @@ -311,19 +294,12 @@ class CaptchaService extends BaseService { expiresAt: Date.now() + this.expirationTime }); - console.log('TOKENS_TRACKING: Test token stored. New token count:', this.captchaTokens.size); - // Verify the token exists const tokenExists = this.captchaTokens.has(testToken); - console.log('TOKENS_TRACKING: Test token exists in map:', tokenExists); - // Try to verify with correct answer const correctVerification = this.verifyCaptcha(testToken, testText); - console.log('TOKENS_TRACKING: Verification with correct answer result:', correctVerification); - // Check if token was deleted after verification const tokenAfterVerification = this.captchaTokens.has(testToken); - console.log('TOKENS_TRACKING: Token exists after verification:', tokenAfterVerification); // Create another test token const testToken2 = 'lifecycle2-' + this.crypto.randomBytes(16).toString('hex'); @@ -334,8 +310,6 @@ class CaptchaService extends BaseService { expiresAt: Date.now() + this.expirationTime }); - console.log('TOKENS_TRACKING: Second test token stored. Token count:', this.captchaTokens.size); - res.json({ message: 'Token lifecycle test completed', serviceId: this.serviceId, diff --git a/src/backend/src/modules/puterai/TogetherAIService.js b/src/backend/src/modules/puterai/TogetherAIService.js index 28fed0d1..e4ca67e9 100644 --- a/src/backend/src/modules/puterai/TogetherAIService.js +++ b/src/backend/src/modules/puterai/TogetherAIService.js @@ -55,7 +55,6 @@ class TogetherAIService extends BaseService { this.kvkey = this.modules.uuidv4(); const svc_aiChat = this.services.get('ai-chat'); - console.log('registering provider', this.service_name); svc_aiChat.register_provider({ service_name: this.service_name, alias: true, diff --git a/src/backend/src/om/entitystorage/ValidationES.js b/src/backend/src/om/entitystorage/ValidationES.js index 94cee80b..b3ab1b83 100644 --- a/src/backend/src/om/entitystorage/ValidationES.js +++ b/src/backend/src/om/entitystorage/ValidationES.js @@ -54,7 +54,6 @@ class ValidationES extends BaseES { ? await (await extra.old_entity.clone()).apply(entity) : entity ; - console.log('VALID ENT', valid_entity) await this.validate_( valid_entity, extra.old_entity ? entity : undefined diff --git a/src/backend/src/om/mappings/subdomain.js b/src/backend/src/om/mappings/subdomain.js index 000eac72..80dc8cb3 100644 --- a/src/backend/src/om/mappings/subdomain.js +++ b/src/backend/src/om/mappings/subdomain.js @@ -46,7 +46,6 @@ module.exports = { return value.toLowerCase(); }, async validate (value) { - console.log('VALIDATIOB IS RUN', config.reserved_words, value); if ( config.reserved_words.includes(value) ) { return APIError.create('subdomain_reserved', null, { subdomain: value, diff --git a/src/backend/src/om/proptypes/__all__.js b/src/backend/src/om/proptypes/__all__.js index e0244410..915a8c44 100644 --- a/src/backend/src/om/proptypes/__all__.js +++ b/src/backend/src/om/proptypes/__all__.js @@ -179,7 +179,6 @@ module.exports = { if ( ! value ) return null; if ( value instanceof Entity ) return value; const svc = Context.get().get('services').get(descriptor.service); - console.log('VALUE BEING READ', value); const entity = await svc.read(value); return entity; } diff --git a/src/backend/src/routers/get-launch-apps.js b/src/backend/src/routers/get-launch-apps.js index 88820832..75b0c513 100644 --- a/src/backend/src/routers/get-launch-apps.js +++ b/src/backend/src/routers/get-launch-apps.js @@ -82,7 +82,6 @@ module.exports = async (req, res) => { // and adding them to the retobj array result.recent = []; for ( const { app_uid: uid } of apps ) { - console.log('\x1B[36;1m -------- UID -------- \x1B[0m', uid); const app = await get_app({ uid }); if ( ! app ) continue diff --git a/src/backend/src/services/HostDiskUsageService.js b/src/backend/src/services/HostDiskUsageService.js index a72e9487..22e72429 100644 --- a/src/backend/src/services/HostDiskUsageService.js +++ b/src/backend/src/services/HostDiskUsageService.js @@ -67,7 +67,6 @@ class HostDiskUsageService extends BaseService { // TODO: Implement for windows systems } - console.log('free_space:', free_space); config.available_device_storage = free_space; } diff --git a/src/backend/src/services/MemoryStorageService.js b/src/backend/src/services/MemoryStorageService.js index 50f2e366..88adcea9 100644 --- a/src/backend/src/services/MemoryStorageService.js +++ b/src/backend/src/services/MemoryStorageService.js @@ -23,8 +23,6 @@ const { Readable } = require("stream"); class MemoryStorageService extends BaseService { async _init () { - console.log('MemoryStorageService._init'); - const svc_mountpoint = this.services.get('mountpoint'); svc_mountpoint.set_storage(MemoryFSProvider.name, this); } diff --git a/src/backend/src/util/opmath.js b/src/backend/src/util/opmath.js index e2dce874..6e57ff0c 100644 --- a/src/backend/src/util/opmath.js +++ b/src/backend/src/util/opmath.js @@ -100,7 +100,6 @@ class StreamReducer { class EWMA extends StreamReducer { constructor ({ initial, alpha }) { super(initial ?? 0); - console.log('VALL', this.value) this.alpha = Getter.adapt(alpha); }