mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-02-14 23:07:20 +00:00
add more logging and fix some docker configs
This commit is contained in:
parent
ee248d9df5
commit
c3c3ca5abb
@ -166,6 +166,7 @@ namespace CompatBot
|
||||
.Build();
|
||||
Log = GetLog();
|
||||
LoggerFactory = new NLogLoggerFactory();
|
||||
Log.Info("Log path: " + CurrentLogPath);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -27,9 +27,9 @@ namespace CompatBot
|
||||
|
||||
internal static async Task Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Confinement: " + SandboxDetector.Detect() ?? "None");
|
||||
if (args.Length > 0 && args[0] == "--dry-run")
|
||||
{
|
||||
Console.WriteLine("Confinement: " + SandboxDetector.Detect());
|
||||
Console.WriteLine("Database path: " + Path.GetDirectoryName(Path.GetFullPath(DbImporter.GetDbPath("fake.db", Environment.SpecialFolder.ApplicationData))));
|
||||
if (Assembly.GetEntryAssembly().GetCustomAttribute<UserSecretsIdAttribute>() is UserSecretsIdAttribute attribute)
|
||||
{
|
||||
|
@ -3,11 +3,13 @@ services:
|
||||
bot:
|
||||
image: rpcs3/discord-bot:latest
|
||||
volumes:
|
||||
# host_path:container_path
|
||||
- /home/MY_USER_NAME/.local/share/compat-bot:/bot-db
|
||||
- /home/MY_USER_NAME/.microsoft/usersecrets/c2e6548b-b215-4a18-a010-958ef294b310:/bot-config
|
||||
- /var/logs/compat-bot:/src/CompatBot/logs
|
||||
- /ver/ird:/var/ird
|
||||
- /var/ird:/var/ird
|
||||
environment:
|
||||
Token: MY_BOT_TOKEN
|
||||
# paths inside container
|
||||
LogPath: /var/logs/compat-bot
|
||||
IrdCachePath: /var/ird
|
||||
|
Loading…
x
Reference in New Issue
Block a user