Skip to content

Commit 6a376e4

Browse files
authored
Merge branch 'main' into simplify-pr-template
2 parents e080e40 + 6ee0073 commit 6a376e4

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

ahk2

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 6.7.1 - unreleased
44

55
- Make "Configuration changed" log debug-level instead of info-level ([#625 (comment)](https://github.com/mark-wiemer/ahkpp/issues/625#issuecomment-2772599772))
6+
- Remove "Invalid setting" log if `logLevel` setting was not found ([#644](https://github.com/mark-wiemer/ahkpp/issues/644))
67

78
## 6.7.0 - 2025-04-01 🤡
89

src/common/log.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,10 @@ export const critical = (value: Error | string) =>
4646

4747
/**
4848
* Logs message if provided log level is valid for configured log level.
49-
* Logs warning if configured log level is invalid.
5049
*/
5150
const log = (value: Error | string, thisLevel: LogLevel) => {
5251
const configLevel: LogLevel | undefined = logLevelRecord[configLevelStr];
53-
if (configLevel === undefined) {
54-
logInner(`Invalid setting AHK++.general.logLevel: "${configLevelStr}"`);
55-
getOutputChannel().show(false);
56-
return;
57-
}
58-
if (configLevel === LogLevel.None) {
52+
if (configLevel === undefined || configLevel === LogLevel.None) {
5953
return;
6054
}
6155
if (thisLevel >= configLevel) {

0 commit comments

Comments
 (0)