mirror of
https://github.com/aunetx/deezer-linux.git
synced 2025-12-12 08:14:16 +01:00
feat(patch): update patch 07
This commit is contained in:
parent
0cc89e591b
commit
efbbe441bb
21
README.md
21
README.md
@ -47,18 +47,19 @@ Other packages can be installed from you package manager, either by clicking on
|
|||||||
| `--hide-appoffline-banner` | Hide the "Application is offline" banner that appears when using a VPN or DNS blocker (see [patch](./patches/11-hide-appoffline-banner.patch)) |
|
| `--hide-appoffline-banner` | Hide the "Application is offline" banner that appears when using a VPN or DNS blocker (see [patch](./patches/11-hide-appoffline-banner.patch)) |
|
||||||
| `--disable-animations` | Disable animations (see [patch](./patches/12-disable-animations.patch)) |
|
| `--disable-animations` | Disable animations (see [patch](./patches/12-disable-animations.patch)) |
|
||||||
| `--disable-notifications` | Disable notifications (see [patch](./patches/13-disable-notifications.patch)) |
|
| `--disable-notifications` | Disable notifications (see [patch](./patches/13-disable-notifications.patch)) |
|
||||||
|
| `--log-level` | Set the log level (`silly`,`debug`,`verbose`,`info`,`warn`,`error`) (see [patch](./patches/07-log-level-environment-variable.patch)) |
|
||||||
| `--enable-wayland-ime` `--ozone-platform-hint=auto` `--wayland-text-input-version=3` | Enable IME keyboard support on Wayland |
|
| `--enable-wayland-ime` `--ozone-platform-hint=auto` `--wayland-text-input-version=3` | Enable IME keyboard support on Wayland |
|
||||||
|
|
||||||
| Environment variable | Options | Description |
|
| Environment variable | Options | Description |
|
||||||
| --------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
| --------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||||
| `DZ_START_IN_TRAY` | `yes`,`no` | Start the app in the tray (see [patch](./patches/01-start-hidden-in-tray.patch)) |
|
| `DZ_START_IN_TRAY` | `yes`,`no` | Start the app in the tray (see [patch](./patches/01-start-hidden-in-tray.patch)) |
|
||||||
| `DZ_DISABLE_SYSTRAY` | `yes`,`no` | Quit the app when the window is closed (see [patch](./patches/03-quit.patch)) |
|
| `DZ_DISABLE_SYSTRAY` | `yes`,`no` | Quit the app when the window is closed (see [patch](./patches/03-quit.patch)) |
|
||||||
| `DZ_KEEP_KERNEL` | `yes`,`no` | Use the exact kernel version (see [patch](./patches/05-remove-os-information.patch)) |
|
| `DZ_KEEP_KERNEL` | `yes`,`no` | Use the exact kernel version (see [patch](./patches/05-remove-os-information.patch)) |
|
||||||
| `DZ_HIDE_APPOFFLINE_BANNER` | `yes`,`no` | Hide the "Application is offline" banner (see [patch](./patches/11-hide-appoffline-banner.patch)) |
|
| `DZ_HIDE_APPOFFLINE_BANNER` | `yes`,`no` | Hide the "Application is offline" banner (see [patch](./patches/11-hide-appoffline-banner.patch)) |
|
||||||
| `DZ_DISABLE_ANIMATIONS` | `yes`,`no` | Disable animations (see [patch](./patches/12-disable-animations.patch)) |
|
| `DZ_DISABLE_ANIMATIONS` | `yes`,`no` | Disable animations (see [patch](./patches/12-disable-animations.patch)) |
|
||||||
| `DZ_DISABLE_NOTIFICATIONS` | `yes`,`no` | Disable notifications (see [patch](./patches/13-disable-notifications.patch)) |
|
| `DZ_DISABLE_NOTIFICATIONS` | `yes`,`no` | Disable notifications (see [patch](./patches/13-disable-notifications.patch)) |
|
||||||
| `LOG_LEVEL` | `silly`,`debug`,`verbose`,`info`,`warning`,`error` | Set the log level (see [patch](./patches/07-log-level-environment-variable.patch)) |
|
| `DZ_LOG_LEVEL` | `silly`,`debug`,`verbose`,`info`,`warn`,`error` | Set the log level (see [patch](./patches/07-log-level-environment-variable.patch)) |
|
||||||
| `DZ_DEVTOOLS` | `yes`,`no` | Enable the developer console (ctrl+shift+i) |
|
| `DZ_DEVTOOLS` | `yes`,`no` | Enable the developer console (ctrl+shift+i) |
|
||||||
|
|
||||||
## Building from source
|
## Building from source
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
From 5cc1a232e85c96163cba700321df9079ea4e4379 Mon Sep 17 00:00:00 2001
|
From 32888596092dd2bded632299af0782a1eb871f18 Mon Sep 17 00:00:00 2001
|
||||||
From: josselinonduty <contact@josselinonduty.fr>
|
From: josselinonduty <contact@josselinonduty.fr>
|
||||||
Date: Wed, 14 May 2025 14:55:20 +0900
|
Date: Sun, 30 Nov 2025 22:37:18 +0100
|
||||||
Subject: [PATCH] fix: set default log level to "warn" to respect Deezer TOS;
|
Subject: [PATCH] fix: set default log level to "warn" to respect Deezer TOS;
|
||||||
control log level from environment variable
|
control log level from environment variable
|
||||||
|
|
||||||
@ -9,34 +9,38 @@ This stops the excessive logging, since parts of the app will not run in develop
|
|||||||
mode anymore. It also stops the app from logging the urls for the mp3 files, which is
|
mode anymore. It also stops the app from logging the urls for the mp3 files, which is
|
||||||
against the Deezer TOS.
|
against the Deezer TOS.
|
||||||
---
|
---
|
||||||
build/main.js | 14 ++++++++------
|
build/main.js | 18 ++++++++++++------
|
||||||
1 file changed, 8 insertions(+), 6 deletions(-)
|
1 file changed, 12 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
diff --git a/build/main.js b/build/main.js
|
diff --git a/build/main.js b/build/main.js
|
||||||
index eabc5e1..485b953 100644
|
index 481fc5c..b141aa2 100644
|
||||||
--- a/build/main.js
|
--- a/build/main.js
|
||||||
+++ b/build/main.js
|
+++ b/build/main.js
|
||||||
@@ -3305,12 +3305,14 @@
|
@@ -3316,12 +3316,18 @@
|
||||||
processType: isProcessMain() ? "main" : process.type,
|
processType: isProcessMain() ? "main" : process.type,
|
||||||
}),
|
}),
|
||||||
(external_electron_log_default().transports.console.format = `{h}:{i}:{s}.{ms} ({processType}/{level}) ${isPlatform(PLATFORM.WINDOWS) ? ">" : "›"} {text}`),
|
(external_electron_log_default().transports.console.format = `{h}:{i}:{s}.{ms} ({processType}/{level}) ${isPlatform(PLATFORM.WINDOWS) ? ">" : "›"} {text}`),
|
||||||
- (external_electron_log_default().transports.console.level = isDev
|
- (external_electron_log_default().transports.console.level = isDev
|
||||||
- ? "silly"
|
- ? "silly"
|
||||||
- : "warn"),
|
- : "warn"),
|
||||||
- (external_electron_log_default().transports.file.level = isDev
|
- (external_electron_log_default().transports.file.level = isDev
|
||||||
- ? "silly"
|
- ? "silly"
|
||||||
- : "warn"),
|
- : "warn"),
|
||||||
+ (external_electron_log_default().transports.console.level =
|
+ (external_electron_log_default().transports.console.level =
|
||||||
+ isDev({ isPackaged: true }) || process.env.LOG_LEVEL
|
+ (process.argv.find((arg) => arg.startsWith("--log-level=")) || "").split(
|
||||||
+ ? process.env.LOG_LEVEL
|
+ "="
|
||||||
+ : "warn"),
|
+ )[1] ||
|
||||||
+ (external_electron_log_default().transports.file.level =
|
+ process.env.DZ_LOG_LEVEL ||
|
||||||
+ isDev({ isPackaged: true }) || !process.env.LOG_LEVEL
|
+ "warn"),
|
||||||
+ ? process.env.LOG_LEVEL
|
+ (external_electron_log_default().transports.file.level =
|
||||||
+ : "warn"),
|
+ (process.argv.find((arg) => arg.startsWith("--log-level=")) || "").split(
|
||||||
(external_electron_log_default().transports.sentry = function (msg) {
|
+ "="
|
||||||
"error" === msg.level &&
|
+ )[1] ||
|
||||||
(msg.data[0] instanceof Error
|
+ process.env.DZ_LOG_LEVEL ||
|
||||||
|
+ "warn"),
|
||||||
|
(external_electron_log_default().transports.sentry = function (msg) {
|
||||||
|
"error" === msg.level &&
|
||||||
|
(msg.data[0] instanceof Error
|
||||||
--
|
--
|
||||||
2.43.0
|
2.48.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user