Skip to content
Browse files

Remove the log/.gitignore, ignore the log file itself instead.

Make sure the log folder exists before trying to log to it.
  • Loading branch information...
1 parent 4f93b8c commit 227fc41baf36e193054f669dbc5f954889d7862d @jzaefferer jzaefferer committed Sep 20, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 .gitignore
  2. +3 −0 lib/builder.js
  3. 0 log/.gitignore
View
2 .gitignore
@@ -1,4 +1,4 @@
node_modules
-downloads.log
+log/downloads.log
release
tmp
View
3 lib/builder.js
@@ -15,6 +15,9 @@ var docsTemplate = handlebars.compile( fs.readFileSync( "template/zip/docs.html"
indexTemplate = handlebars.compile( fs.readFileSync( "template/zip/index.html", "utf8" ) ),
cache = {};
+if ( !fs.existsSync( "log" )) {
+ fs.mkdir( "log" );
+}
var download_logger = new winston.Logger({
transports: [
new winston.transports.File({
View
0 log/.gitignore
No changes.

0 comments on commit 227fc41

Please sign in to comment.
Something went wrong with that request. Please try again.