mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-07-19 14:37:00 +00:00
Fixed privilge escalation on Linux and Windows
This commit is contained in:
parent
3a3c14aab7
commit
de796a8673
3 changed files with 44 additions and 22 deletions
|
@ -360,12 +360,12 @@ export default class Main {
|
|||
try {
|
||||
Main.application = app;
|
||||
const isUpdating = Updater.isUpdating();
|
||||
const fileLogType = (isUpdating && !Updater.updateApplied) ? 'fileSync' : 'file';
|
||||
const fileLogType = isUpdating ? 'fileSync' : 'file';
|
||||
|
||||
log4js.configure({
|
||||
appenders: {
|
||||
out: { type: 'stdout' },
|
||||
log: { type: fileLogType, filename: path.join(app.getPath('logs'), 'fcast-receiver.log'), flags: 'a', maxLogSize: '10M' },
|
||||
log: { type: fileLogType, filename: path.join(app.getPath('logs'), 'fcast-receiver.log'), flags: 'a', maxLogSize: '5M' },
|
||||
},
|
||||
categories: {
|
||||
default: { appenders: ['out', 'log'], level: 'info' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue