Skip to content

Commit 8f6d787

Browse files
committed
Update log file references from 'mcpproxy.log' to 'main.log' across workflows and internal logging configurations
1 parent e395bc5 commit 8f6d787

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ jobs:
118118
119119
# Verify log file was created in standard OS location
120120
if [ "$(uname)" = "Linux" ]; then
121-
if [ -f "$HOME/.local/state/mcpproxy/logs/mcpproxy.log" ]; then
121+
if [ -f "$HOME/.local/state/mcpproxy/logs/main.log" ]; then
122122
echo "✓ Log file created in Linux standard location"
123-
head -5 "$HOME/.local/state/mcpproxy/logs/mcpproxy.log"
123+
head -5 "$HOME/.local/state/mcpproxy/logs/main.log"
124124
else
125125
echo "⚠ Log file not found in expected location"
126126
fi
@@ -219,20 +219,20 @@ jobs:
219219
ls -la "${{ matrix.log_path_check }}"
220220
221221
# Check if log file exists and has content
222-
if [ -f "${{ matrix.log_path_check }}/mcpproxy.log" ]; then
222+
if [ -f "${{ matrix.log_path_check }}/main.log" ]; then
223223
echo "✓ Log file created successfully"
224-
echo "Log file size: $(wc -c < "${{ matrix.log_path_check }}/mcpproxy.log") bytes"
224+
echo "Log file size: $(wc -c < "${{ matrix.log_path_check }}/main.log") bytes"
225225
echo "First few lines:"
226-
head -3 "${{ matrix.log_path_check }}/mcpproxy.log"
226+
head -3 "${{ matrix.log_path_check }}/main.log"
227227
228228
# Verify log contains expected content
229-
if grep -q "Log directory configured" "${{ matrix.log_path_check }}/mcpproxy.log"; then
229+
if grep -q "Log directory configured" "${{ matrix.log_path_check }}/main.log"; then
230230
echo "✓ Log contains expected startup messages"
231231
else
232232
echo "⚠ Log missing expected startup messages"
233233
fi
234234
235-
if grep -q "${{ matrix.log_standard }}" "${{ matrix.log_path_check }}/mcpproxy.log"; then
235+
if grep -q "${{ matrix.log_standard }}" "${{ matrix.log_path_check }}/main.log"; then
236236
echo "✓ Log contains OS standard compliance information"
237237
else
238238
echo "⚠ Log missing OS standard compliance information"
@@ -274,7 +274,7 @@ jobs:
274274
Get-ChildItem $logPath
275275
276276
# Check if log file exists and has content
277-
$logFile = Join-Path $logPath "mcpproxy.log"
277+
$logFile = Join-Path $logPath "main.log"
278278
if (-not (Test-Path $logFile)) {
279279
Write-Host "✗ Log file not created"
280280
exit 1

internal/logs/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func DefaultLogConfig() *config.LogConfig {
1919
Level: "info",
2020
EnableFile: true,
2121
EnableConsole: true,
22-
Filename: "mcpproxy.log",
22+
Filename: "main.log",
2323
MaxSize: 10, // 10MB
2424
MaxBackups: 5, // 5 backup files
2525
MaxAge: 30, // 30 days

internal/tray/autostart.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const (
2828
<key>KeepAlive</key>
2929
<false/>
3030
<key>StandardOutPath</key>
31-
<string>%s/mcpproxy.log</string>
31+
<string>%s/main.log</string>
3232
<key>StandardErrorPath</key>
33-
<string>%s/mcpproxy-error.log</string>
33+
<string>%s/main-error.log</string>
3434
<key>WorkingDirectory</key>
3535
<string>%s</string>
3636
</dict>

0 commit comments

Comments
 (0)