Rename
This commit is contained in:
parent
396d07be66
commit
b56e8f6c15
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import type { LogLine, SyncClient } from "sync-client";
|
||||
import { LogLevel } from "sync-client";
|
||||
|
||||
export function registerConsoleForLogging(client: SyncClient): void {
|
||||
export function logToConsole(client: SyncClient): void {
|
||||
client.logger.addOnMessageListener((logLine: LogLine) => {
|
||||
const formatted = `${logLine.timestamp.toISOString()} ${logLine.level} ${logLine.message}`;
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ import { StatusDescription } from "./views/status-description/status-description
|
|||
import { SyncClient, rateLimit, DEFAULT_SETTINGS } from "sync-client";
|
||||
import { ObsidianFileSystemOperations } from "./obsidian-file-system";
|
||||
import { SyncSettingsTab } from "./views/settings/settings-tab";
|
||||
import { registerConsoleForLogging } from "./utils/register-console-for-logging";
|
||||
import { logToConsole } from "./utils/log-to-console";
|
||||
import { updateEditorStatusDisplay } from "./views/editor-sync-line/editor-sync-line";
|
||||
import { remoteCursorsTheme } from "./views/cursors/remote-cursor-theme";
|
||||
import {
|
||||
|
|
@ -53,7 +53,7 @@ export default class VaultLinkPlugin extends Plugin {
|
|||
nativeLineEndings: Platform.isWin ? "\r\n" : "\n"
|
||||
});
|
||||
|
||||
registerConsoleForLogging(this.client);
|
||||
logToConsole(this.client);
|
||||
|
||||
const statusDescription = new StatusDescription(this.client);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue