Skip to content

Commit

Permalink
fix plugin logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Matchlighter committed Aug 14, 2024
1 parent 705c543 commit df707e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hypervisor/hypervisor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export class Hypervisor extends TypedEmitter<HypervisorEvents> {

private updateLogConfiguration(cfg: Configuration['logging']) {
let sys_file = cfg.system_file;
sys_file ||= path.join(this.operations_directory, "logs", "%DATE%.log");

this._logger?.close();

Expand Down Expand Up @@ -317,10 +316,11 @@ export class Hypervisor extends TypedEmitter<HypervisorEvents> {

const cfg = ConfigMerger.mergeConfigs(defaultConfig, parsed);

cfg.logging.plugins_file ||= cfg.logging.system_file;
cfg.logging.plugins_file ||= path.join(this.operations_directory, "logs", "plugins", "{plugin}", "%DATE%.log");
cfg.logging.plugins_file = path.resolve(this.working_directory, cfg.logging.plugins_file);

// cfg.logging.system_file = path.resolve(this.working_directory, cfg.logging.system_file);
// cfg.logging.plugins_file = path.resolve(this.working_directory, cfg.logging.plugins_file);
cfg.logging.system_file ||= path.join(this.operations_directory, "logs", "%DATE%.log");
cfg.logging.system_file = path.resolve(this.working_directory, cfg.logging.system_file);

if (no_watching) {
cfg.daemon.watch = { app_configs: false, app_source: false, config: false }
Expand Down

0 comments on commit df707e0

Please sign in to comment.