fix: remove some loggers
This commit is contained in:
@@ -538,7 +538,7 @@ export default async function({sandbox = false} = {}) {
|
|||||||
//Control endpoints
|
//Control endpoints
|
||||||
if (conf.settings.control?.token) {
|
if (conf.settings.control?.token) {
|
||||||
const middleware = (req, res, next) => {
|
const middleware = (req, res, next) => {
|
||||||
console.log(`metrics/app/control > ${req.url.replace(/[\n\r]/g, "")}`)
|
console.debug(`metrics/app/control > ${req.url.replace(/[\n\r]/g, "")}`)
|
||||||
if (req.headers.authorization === conf.settings.control.token) {
|
if (req.headers.authorization === conf.settings.control.token) {
|
||||||
next()
|
next()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -128,7 +128,6 @@ export default async function({login, data, rest, imports, q, account}, {enabled
|
|||||||
const height = 160
|
const height = 160
|
||||||
if (type === "line")
|
if (type === "line")
|
||||||
return imports.Graph.line(Object.entries(data).map(([x, y]) => ({x: +x, y})), {low, high, ticks, labels, width, height})
|
return imports.Graph.line(Object.entries(data).map(([x, y]) => ({x: +x, y})), {low, high, ticks, labels, width, height})
|
||||||
console.log(data)
|
|
||||||
if (type === "pie")
|
if (type === "pie")
|
||||||
return imports.Graph.pie(data, {colors, width, height})
|
return imports.Graph.pie(data, {colors, width, height})
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user