Update logging
This commit is contained in:
parent
def602c05e
commit
810a333429
39 changed files with 85 additions and 139 deletions
|
|
@ -30,7 +30,6 @@ export const QRCode: FC<QRCodeProps> = ({
|
|||
if (!verified && getValue && refreshInterval) {
|
||||
const interval = setInterval(async () => {
|
||||
const { qr, kind } = await getValue(token);
|
||||
console.log({ kind });
|
||||
setValue(qr);
|
||||
setKind(kind);
|
||||
}, refreshInterval * 1000);
|
||||
|
|
|
|||
|
|
@ -101,7 +101,6 @@ export class Service {
|
|||
},
|
||||
};
|
||||
|
||||
console.log(response);
|
||||
return NextResponse.json(response);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ export const Home: FC<HomeProps> = ({
|
|||
visualizations = [],
|
||||
showWelcome = true,
|
||||
}) => {
|
||||
console.log("Home", visualizations);
|
||||
const router = useRouter();
|
||||
const pathname = usePathname() ?? "";
|
||||
const cookieName = "homeIntroComplete";
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ export const VisualizationDetail: FC<VisualizationDetailProps> = ({
|
|||
typography: { h4, p },
|
||||
} = useLeafcutterContext();
|
||||
const finalURL = `${url}&_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-3y%2Cto%3Anow))`;
|
||||
console.log({ finalURL });
|
||||
return (
|
||||
<Box key={id}>
|
||||
{!editing ? (
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ export const updateUserVisualization = async (
|
|||
});
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log({ e });
|
||||
console.error({ e });
|
||||
}
|
||||
|
||||
return id;
|
||||
|
|
@ -620,7 +620,6 @@ export const performZammadQuery = async (searchQuery: any, limit: number) => {
|
|||
hits: { hits },
|
||||
} = dataResponse.body;
|
||||
const results = hits.map((hit: any) => {
|
||||
console.log(hit);
|
||||
return {
|
||||
...hit._source,
|
||||
id: hit._id,
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ export const MultiValueField: FC<MultiValueFieldProps> = ({
|
|||
newFields[index][position] = value;
|
||||
setFields(newFields);
|
||||
// formState.values[name] = Object.fromEntries(newFields);
|
||||
// console.log(formState.values);
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import path from "path";
|
|||
import os from "os";
|
||||
|
||||
const packageFile = async (actualPath: string): Promise<any> => {
|
||||
console.log(`Packaging: ${actualPath}`);
|
||||
console.info(`Packaging: ${actualPath}`);
|
||||
const packagePath = actualPath.slice(4);
|
||||
const data = await fs.readFile(actualPath, "utf-8");
|
||||
const content = Buffer.from(data, "utf-8").toString("base64");
|
||||
|
|
@ -74,7 +74,7 @@ export const createZPM = async ({
|
|||
|
||||
for (const file of files) {
|
||||
await fs.unlink(file);
|
||||
console.log(`${file} was deleted`);
|
||||
console.info(`${file} was deleted`);
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
|
|
@ -89,7 +89,7 @@ export const createZPM = async ({
|
|||
const main = async () => {
|
||||
const packageJSON = JSON.parse(await fs.readFile("./package.json", "utf-8"));
|
||||
const { name: fullName, displayName, version } = packageJSON;
|
||||
console.log(`Building addon ${displayName} v${version}`);
|
||||
console.info(`Building addon ${displayName} v${version}`);
|
||||
const name = fullName.split("/").pop();
|
||||
await createZPM({ name, displayName, version });
|
||||
};
|
||||
|
|
|
|||
|
|
@ -53,4 +53,4 @@ if (!re.test(name))
|
|||
throw new Error("Name must be only alphanumeric and start with a letter");
|
||||
|
||||
const res = migration(name, ups, downs);
|
||||
console.log(res);
|
||||
console.info(res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue