Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/mongodb/lib/operations/profiling_level.js
Назад
'use strict'; const CommandOperation = require('./command'); class ProfilingLevelOperation extends CommandOperation { constructor(db, command, options) { super(db, options); } _buildCommand() { const command = { profile: -1 }; return command; } execute(callback) { super.execute((err, doc) => { if (err == null && doc.ok === 1) { const was = doc.was; if (was === 0) return callback(null, 'off'); if (was === 1) return callback(null, 'slow_only'); if (was === 2) return callback(null, 'all'); return callback(new Error('Error: illegal profiling level value ' + was), null); } else { err != null ? callback(err, null) : callback(new Error('Error with profile command'), null); } }); } } module.exports = ProfilingLevelOperation;
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка