add current log link
This commit is contained in:
parent
bc58245fb5
commit
8148eeee7e
2 changed files with 4 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ let gs_kiri_laser = exports;
|
||||||
max.y = Math.max(max.y, point.y);
|
max.y = Math.max(max.y, point.y);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
console.log(print.settings)
|
|
||||||
if (!process.outputOriginCenter) {
|
if (!process.outputOriginCenter) {
|
||||||
// normalize against origin lower left
|
// normalize against origin lower left
|
||||||
output.forEach(function(layer) {
|
output.forEach(function(layer) {
|
||||||
|
|
|
||||||
|
|
@ -1178,6 +1178,9 @@ function open_logger(options) {
|
||||||
close_file_stream();
|
close_file_stream();
|
||||||
logfile = path.join(opt.dir, last_pattern = moment().format(pattern));
|
logfile = path.join(opt.dir, last_pattern = moment().format(pattern));
|
||||||
logstream = fs.createWriteStream(logfile, {flags: 'a'});
|
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;
|
count = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue