Improve log handling
This commit is contained in:
		@@ -54,6 +54,7 @@ export default class Logger {
 | 
			
		||||
	private log(level: Level, message: string, data?: Record<string, any> | null, important = false, subDomains: Domain[] = [], store = true): void {
 | 
			
		||||
		if (program.quiet) return;
 | 
			
		||||
		if (!this.store) store = false;
 | 
			
		||||
		if (level === 'debug') store = false;
 | 
			
		||||
 | 
			
		||||
		if (this.parentLogger) {
 | 
			
		||||
			this.parentLogger.log(level, message, data, important, [this.domain].concat(subDomains), store);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user