debug log data
This commit is contained in:
		
							parent
							
								
									cc9e1b86e6
								
							
						
					
					
						commit
						6d4b10ae4b
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		
							
								
								
									
										8
									
								
								parse.js
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								parse.js
									
										
									
									
									
								
							|  | @ -1,4 +1,12 @@ | ||||||
|  | import * as fs from 'fs'; | ||||||
|  | import Logger, { levels } from './logger.js'; | ||||||
|  | 
 | ||||||
|  | const cfg = JSON.parse(fs.readFileSync('./config.json')); | ||||||
|  | const log = new Logger("server", cfg.log_level ? levels[cfg.log_level] : levels.INFO); | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| export default function parse(data) { | export default function parse(data) { | ||||||
|  |   log.info(data) | ||||||
|   return { |   return { | ||||||
|     errors: ["not yet implemented"] |     errors: ["not yet implemented"] | ||||||
|   } |   } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue