*Make log the default export
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
88a827276e
commit
a6eef21da0
|
@ -3,7 +3,7 @@ import Config from "@lumeweb/cfg";
|
||||||
import * as os from "os";
|
import * as os from "os";
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { log } from "./log.js";
|
import log from "./log.js";
|
||||||
|
|
||||||
const config = new Config("lumeweb-relay");
|
const config = new Config("lumeweb-relay");
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { log } from "../log.js";
|
import log from "../log.js";
|
||||||
|
|
||||||
export function errorExit(msg: string): void {
|
export function errorExit(msg: string): void {
|
||||||
log.error(msg);
|
log.error(msg);
|
||||||
|
|
|
@ -5,4 +5,5 @@ const stream = pretty({
|
||||||
colorize: true,
|
colorize: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const log = pino(stream);
|
const log = pino(stream);
|
||||||
|
export default log;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { AddressInfo } from "net";
|
import { AddressInfo } from "net";
|
||||||
import { log } from "./log.js";
|
import log from "./log.js";
|
||||||
import fastify from "fastify";
|
import fastify from "fastify";
|
||||||
import type { FastifyInstance } from "fastify";
|
import type { FastifyInstance } from "fastify";
|
||||||
import { getKeyPair } from "../lib/seed.js";
|
import { getKeyPair } from "../lib/seed.js";
|
||||||
|
|
|
@ -12,7 +12,7 @@ import pluginRpc from "./plugins/rpc";
|
||||||
import pluginCore from "./plugins/core";
|
import pluginCore from "./plugins/core";
|
||||||
import type Config from "@lumeweb/cfg";
|
import type Config from "@lumeweb/cfg";
|
||||||
import EventEmitter2 from "eventemitter2";
|
import EventEmitter2 from "eventemitter2";
|
||||||
import { log } from "./log.js";
|
import log from "./log.js";
|
||||||
import { get as getSwarm } from "./swarm.js";
|
import { get as getSwarm } from "./swarm.js";
|
||||||
|
|
||||||
let pluginAPIManager: PluginAPIManager;
|
let pluginAPIManager: PluginAPIManager;
|
||||||
|
|
|
@ -8,7 +8,7 @@ import config from "../config.js";
|
||||||
import { get as getSwarm } from "./swarm.js";
|
import { get as getSwarm } from "./swarm.js";
|
||||||
import { get as getSslManager } from "./ssl.js";
|
import { get as getSslManager } from "./ssl.js";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { log } from "./log.js";
|
import log from "./log.js";
|
||||||
import { AddressInfo } from "net";
|
import { AddressInfo } from "net";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import promiseRetry from "promise-retry";
|
import promiseRetry from "promise-retry";
|
||||||
|
|
|
@ -8,7 +8,7 @@ import jsonStringify from "json-stringify-deterministic";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import crypto from "hypercore-crypto";
|
import crypto from "hypercore-crypto";
|
||||||
import NodeCache from "node-cache";
|
import NodeCache from "node-cache";
|
||||||
import { log } from "../../log.js";
|
import log from "../../log.js";
|
||||||
|
|
||||||
export class RPCCache extends EventEmitter {
|
export class RPCCache extends EventEmitter {
|
||||||
private server: RPCServer;
|
private server: RPCServer;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as tls from "tls";
|
import * as tls from "tls";
|
||||||
import b4a from "b4a";
|
import b4a from "b4a";
|
||||||
import { log } from "./log.js";
|
import log from "./log.js";
|
||||||
import config from "../config.js";
|
import config from "../config.js";
|
||||||
|
|
||||||
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
|
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
|
||||||
|
|
|
@ -9,7 +9,7 @@ import DHT from "@hyperswarm/dht";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import sodium from "sodium-universal";
|
import sodium from "sodium-universal";
|
||||||
import b4a from "b4a";
|
import b4a from "b4a";
|
||||||
import { log } from "../log.js";
|
import log from "../log.js";
|
||||||
import { getKeyPair } from "../lib/seed.js";
|
import { getKeyPair } from "../lib/seed.js";
|
||||||
|
|
||||||
const LUMEWEB = b4a.from("lumeweb");
|
const LUMEWEB = b4a.from("lumeweb");
|
||||||
|
|
Loading…
Reference in New Issue