Skip to content

Commit

Permalink
update to 4.1.4.6000
Browse files Browse the repository at this point in the history
  • Loading branch information
MidCoard committed Oct 2, 2022
1 parent cf58347 commit 8f16206
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ Maven 依赖
<dependency>
<groupId>top.focess</groupId>
<artifactId>focess-qq</artifactId>
<version>4.1.4.5000</version>
<version>4.1.4.6000</version>
</dependency>
```

Gradle 依赖

```gradle
implementation 'top.focess:focess-qq:4.1.4.5000'
implementation 'top.focess:focess-qq:4.1.4.6000'
```

开发文档移步本项目[Wiki](https://github.com/MIdCoard/MiraiQQ/wiki)
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<description>A simple QQ Bot framework</description>
<groupId>top.focess</groupId>
<artifactId>focess-qq</artifactId>
<version>4.1.4.5000</version>
<version>4.1.4.6000</version>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
Expand All @@ -35,7 +35,7 @@
<util.version>1.1.12</util.version>
<scheduler.version>1.1.6</scheduler.version>
<sysout.version>1.0.2</sysout.version>
<socket.version>1.0.2</socket.version>
<socket.version>1.0.3</socket.version>
</properties>

<repositories>
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/top/focess/qq/api/util/logger/FocessLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import top.focess.net.socket.ASocket;
import top.focess.qq.FocessQQ;
import top.focess.qq.core.commands.util.ChatConstants;
import top.focess.qq.core.plugin.PluginCoreClassLoader;
Expand Down Expand Up @@ -128,6 +129,10 @@ public void trace(final String message, final Throwable e) {
* Note: if debug output is true, the debug message will be outputted as INFO level and DEBUG level, otherwise, it will be outputted as DEBUG level
*/
public void toggleDebugOutput() {
if (ASocket.isDebug())
ASocket.disableDebug();
else
ASocket.enableDebug();
this.debugOutput = !this.debugOutput;
}

Expand Down

0 comments on commit 8f16206

Please sign in to comment.