fix(web): allow group replies past allowFrom

This commit is contained in:
Peter Steinberger
2025-12-03 13:08:54 +00:00
parent 4c3635a7c0
commit 8204351d67
6 changed files with 73 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import chalk from "chalk";
import { getLogger } from "./logging.js";
let globalVerbose = false;
let globalYes = false;
@@ -12,7 +13,14 @@ export function isVerbose() {
}
export function logVerbose(message: string) {
if (globalVerbose) console.log(chalk.gray(message));
if (globalVerbose) {
console.log(chalk.gray(message));
try {
getLogger().debug({ message }, "verbose");
} catch {
// ignore logger failures to avoid breaking verbose printing
}
}
}
export function setYes(v: boolean) {