Skip to content

Commit

Permalink
feat: Log more login related information with default log level
Browse files Browse the repository at this point in the history
  • Loading branch information
3urobeat committed May 3, 2024
1 parent 92a661c commit 9361387
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/bot/helpers/handleRelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Created Date: 2023-10-05 16:14:46
* Author: 3urobeat
*
* Last Modified: 2024-05-02 10:54:36
* Last Modified: 2024-05-03 18:56:32
* Modified By: 3urobeat
*
* Copyright (c) 2023 - 2024 3urobeat <https://github.com/3urobeat>
Expand Down Expand Up @@ -139,7 +139,7 @@ Bot.prototype.handleRelog = async function() {
setTimeout(() => {

// Abort if account is online again for some reason
if (this.status == Bot.EStatus.ONLINE) return logger("debug", `Bot handleRelog(): Timeout elapsed but bot${this.index} is not offline anymore. Ignoring...`);
if (this.status == Bot.EStatus.ONLINE) return logger("info", `[${this.logPrefix}] Relog timeout elapsed, however the account is already online again?! Ignoring relog request...`);

// Update status to offline and call login again
this.status = Bot.EStatus.OFFLINE;
Expand Down
4 changes: 2 additions & 2 deletions src/controller/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Created Date: 2021-07-09 16:26:00
* Author: 3urobeat
*
* Last Modified: 2024-03-08 18:20:05
* Last Modified: 2024-05-03 19:55:19
* Modified By: 3urobeat
*
* Copyright (c) 2021 - 2024 3urobeat <https://github.com/3urobeat>
Expand Down Expand Up @@ -52,7 +52,7 @@ Controller.prototype.login = async function(firstLogin) {
}

// Ignore login request if another login is running
if (this.info.activeLogin) return logger("debug", "Controller login(): Login requested but there is already a login process active. Ignoring...");
if (this.info.activeLogin) return logger("info", "Login for all offline accounts requested but there is already one process running. Ignoring request for now, it will be handled after this process is done.", false, true);

logger("debug", "Controller login(): Login requested, checking for any accounts currently OFFLINE or POSTPONED...");

Expand Down
4 changes: 2 additions & 2 deletions src/data/fileStructure.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
{
"path": "src/bot/helpers/handleRelog.js",
"url": "https://raw.githubusercontent.com/3urobeat/steam-comment-service-bot/beta-testing/src/bot/helpers/handleRelog.js",
"checksum": "e9197cd02697f19733c7e199ca783eeb"
"checksum": "67628d3bd1ab7628016557e5ad8417b6"
},
{
"path": "src/bot/helpers/steamChatInteraction.js",
Expand Down Expand Up @@ -553,7 +553,7 @@
{
"path": "src/controller/login.js",
"url": "https://raw.githubusercontent.com/3urobeat/steam-comment-service-bot/beta-testing/src/controller/login.js",
"checksum": "a3181994388cb9145687ff167345ee47"
"checksum": "77edc8c09056c1911661dd1f4d52234a"
},
{
"path": "src/data/ascii.js",
Expand Down

0 comments on commit 9361387

Please sign in to comment.