From 8aaa88770f8c7500808fb849d289336f0571813a Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Tue, 8 Sep 2020 15:44:55 +0200 Subject: [PATCH] Accounting for Windows paths in logger. --- seeds/02_sites.js | 4 ++++ src/logger.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/seeds/02_sites.js b/seeds/02_sites.js index ce1fbfd1..99d0f4d1 100644 --- a/seeds/02_sites.js +++ b/seeds/02_sites.js @@ -5014,6 +5014,7 @@ const sites = [ url: 'http://www.analoverdose.com', description: 'Before proceeding, use caution: the stunning pornstars of Anal Overdose are so fiery that they cause heavy breathing, throbbing cocks and volcanic loads of cum. If you think you can handle the heat of smoking tits, sweltering pussy and red hot ass.', parent: 'pervcity', + tags: ['anal'], parameters: { siteId: 2, tourId: 3, @@ -5036,6 +5037,7 @@ const sites = [ description: "Oral Overdose is the only site you need to live out every saliva soaked blowjob of your dreams in HD POV! We've got the most stunning cocksuckers in the world going to town on big dick. These babes not only love cock, they can't get enough of it! In fact, there is no prick too huge for our hungry girls' throats. You'll find gorgeous, big tits pornstars exercising their gag reflex in intense balls deep facefuck scenes. We also feature fresh, young newbies taking on the gagging deepthroat challenge.", url: 'http://www.oraloverdose.com', parent: 'pervcity', + tags: ['blowjob'], parameters: { siteId: 4, tourId: 4, @@ -5047,6 +5049,7 @@ const sites = [ description: "You've just won the golden ticket to the best Chocolate BJs on the planet! We've sought far and wide to bring you the most beautiful black and ethnic pornstars. And they're in our members' area now! They can't wait to suck your white lollipop and lick the thick cream shooting from your big dick. Of course, no matter how sweet the booty or juicy the big tits, these brown foxes aren't all sugar and spice. In fact, when it comes to giving head, these big ass ebony babes know what they want: huge white cocks filling their throats!", url: 'http://www.chocolatebjs.com', parent: 'pervcity', + tags: ['blowjob', 'ebony'], parameters: { siteId: 5, tourId: 6, @@ -5058,6 +5061,7 @@ const sites = [ description: "You don't need to travel the globe in search of the anal wonders of the world, because you get your own private tour right here on Up Her Asshole! Our stunning pornstars and rookie starlets welcome all ass fetish and anal sex fans, with their twerking bubble butts and winking assholes. However, big booty worship is just a slice of the fun. Combined with juicy tits (big and small, wet pussy (hairy and bald, these girls deliver a spectacular sensory experience in HD POV. Not only are you in danger of busting a nut before the going gets good, but also when the good turns remarkable with rimming, fingering and butt toys!", url: 'http://upherasshole.com', parent: 'pervcity', + tags: ['anal'], parameters: { siteId: 6, tourId: 9, diff --git a/src/logger.js b/src/logger.js index 6621e08b..080daf20 100644 --- a/src/logger.js +++ b/src/logger.js @@ -9,7 +9,7 @@ require('winston-daily-rotate-file'); const args = require('./argv'); function logger(filepath) { - const root = filepath.match(/src\/|dist\//); + const root = filepath.match(/src[/\\]|dist[/\\]/); const filename = filepath.slice(root.index + root[0].length) .replace(path.extname(filepath), ''); @@ -29,7 +29,7 @@ function logger(filepath) { }), new winston.transports.DailyRotateFile({ datePattern: 'YYYY-MM-DD', - filename: 'log/%DATE%.log', + filename: path.join('log', '%DATE%.log'), level: 'silly', }), ],