Making NodeLogging build on Logging
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import { Lock, ObservableInterface } from "@hibas123/utils";
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import { Adapter, LoggingTypes, Message } from "./types";
|
||||
import { Adapter, Message, LoggingTypes } from "@hibas123/logging";
|
||||
|
||||
|
||||
const maxFileSize = 500000000;
|
||||
|
||||
@ -137,6 +138,7 @@ export class Files {
|
||||
this.size += data.byteLength;
|
||||
this.stream.write(data);
|
||||
} catch (err) {
|
||||
// TODO: Better error handling!
|
||||
console.error(err);
|
||||
this.initializeFile(false);
|
||||
this.write_to_file(data);
|
||||
|
Reference in New Issue
Block a user