add current log link

This commit is contained in:
Stewart Allen 2020-03-12 20:46:32 -04:00
commit 8148eeee7e
2 changed files with 4 additions and 1 deletions

View file

@ -228,7 +228,7 @@ let gs_kiri_laser = exports;
max.y = Math.max(max.y, point.y);
});
});
console.log(print.settings)
if (!process.outputOriginCenter) {
// normalize against origin lower left
output.forEach(function(layer) {

View file

@ -1178,6 +1178,9 @@ function open_logger(options) {
close_file_stream();
logfile = path.join(opt.dir, last_pattern = moment().format(pattern));
logstream = fs.createWriteStream(logfile, {flags: 'a'});
let cur = path.join(opt.dir, "current");
try { fs.unlinkSync(cur) } catch (e) { }
try { fs.symlinkSync(last_pattern, cur) } catch (e) { }
count = 0;
}