More better server logging, rev version

This commit is contained in:
Tyfon
2024-08-12 17:05:24 -07:00
parent 54812d4a03
commit 9324922f82
3 changed files with 10 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "uifixes",
"version": "2.3.4",
"version": "2.4.0",
"main": "src/mod.js",
"license": "MIT",
"author": "Tyfon",

View File

@@ -47,7 +47,7 @@ class UIFixes implements IPreSptLoadMod {
}
}
} catch (error) {
this.logger.error(`UIFixes failed to restore quickbinds\n ${error}`);
this.logger.error(`UIFixes: Failed to restore quickbinds\n ${error}`);
}
};
},
@@ -78,7 +78,7 @@ class UIFixes implements IPreSptLoadMod {
}
}
} catch (error) {
this.logger.error(`UIFixes failed to save tool origin\n ${error}`);
this.logger.error(`UIFixes: Failed to save tool origin\n ${error}`);
}
return result;
@@ -149,10 +149,12 @@ class UIFixes implements IPreSptLoadMod {
}
}
} catch (error) {
this.logger.error(
`UIFixes failed to put a tool back, it will be returned to your stash as normal.\n ${error}`
);
this.logger.error(`UIFixes: Encounted an error trying to put tool back.\n ${error}`);
}
this.logger.info(
"UIFixes: Unable to put tool back in its original container, returning it to stash."
);
}
return original.call(inventoryHelper, sessionId, request, pmcData, output);
@@ -200,7 +202,7 @@ class UIFixes implements IPreSptLoadMod {
if (!quests[questId]) {
this.logger.error(
`Trader ${traderId} questassort references unknown quest ${JSON.stringify(questId)}!`
`UIFixes: Trader ${traderId} questassort references unknown quest ${JSON.stringify(questId)}!`
);
continue;
}