Fix/various fixes (#711)
* Consistent node parser warnings * telemetry release * remove friendly name from tags * revert log level calls, use noTelemetry * Ignore nodes * Event fingerprinting * ignore known error * NodesParser fingerprinting * user id * Fix missing title when fetching video * changelog * tweak * no telemetry in longpoller * rate limit * Attachment support
This commit is contained in:
1 parent
b29678ff15
commit
48b0efc713
17 files changed
+381
-94
No files matched your search
@@ -213,7 +213,7 @@ export class LoggerPlugin implements CompilerPlugin {
|
||||
logLine = `"[${func.stringLevel}]" + ${msg}`
|
||||
}
|
||||
|
||||
return `
|
||||
let result = `
|
||||
function ${newFunctionName}(${args.join(', ')}) as void
|
||||
logger = m.global.logger
|
||||
if logger.logLevel < ${func.level}
|
||||
@@ -221,9 +221,16 @@ function ${newFunctionName}(${args.join(', ')}) as void
|
||||
end if
|
||||
line = ${logLine}
|
||||
logger.logLine = line
|
||||
${(telemetryEnabled ? `m.global.telemetry.${level} = line` : '')}
|
||||
end function
|
||||
`;
|
||||
if (telemetryEnabled) {
|
||||
result += ` if not (m.noTelemetry = true)
|
||||
m.global.telemetry.${level} = line
|
||||
end if
|
||||
`;
|
||||
}
|
||||
result += `end function
|
||||
`;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user