Skip to content

Commit 658824b

Browse files
authored
Merge pull request #438 from 13xforever/vnext
Add more logging and fix some docker configs
2 parents c8322be + c3c3ca5 commit 658824b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CompatBot/Config.cs

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ static Config()
166166
.Build();
167167
Log = GetLog();
168168
LoggerFactory = new NLogLoggerFactory();
169+
Log.Info("Log path: " + CurrentLogPath);
169170
}
170171
catch (Exception e)
171172
{

CompatBot/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ internal static class Program
2727

2828
internal static async Task Main(string[] args)
2929
{
30+
Console.WriteLine("Confinement: " + SandboxDetector.Detect() ?? "None");
3031
if (args.Length > 0 && args[0] == "--dry-run")
3132
{
32-
Console.WriteLine("Confinement: " + SandboxDetector.Detect());
3333
Console.WriteLine("Database path: " + Path.GetDirectoryName(Path.GetFullPath(DbImporter.GetDbPath("fake.db", Environment.SpecialFolder.ApplicationData))));
3434
if (Assembly.GetEntryAssembly().GetCustomAttribute<UserSecretsIdAttribute>() is UserSecretsIdAttribute attribute)
3535
{

docker-compose.example.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ services:
33
bot:
44
image: rpcs3/discord-bot:latest
55
volumes:
6+
# host_path:container_path
67
- /home/MY_USER_NAME/.local/share/compat-bot:/bot-db
78
- /home/MY_USER_NAME/.microsoft/usersecrets/c2e6548b-b215-4a18-a010-958ef294b310:/bot-config
89
- /var/logs/compat-bot:/src/CompatBot/logs
9-
- /ver/ird:/var/ird
10+
- /var/ird:/var/ird
1011
environment:
1112
Token: MY_BOT_TOKEN
13+
# paths inside container
1214
LogPath: /var/logs/compat-bot
1315
IrdCachePath: /var/ird

0 commit comments

Comments
 (0)