Commit 3e978a2
authored
Fix/file logger location (#133)
refactor: simplify log file paths by removing codacy-cli-v2 prefix
Modify logger path handling to:
- Remove any codacy-cli-v2 prefix from log file paths
- Strip out parent directory references (../)
- Clean up absolute paths to show only project-relative paths
- Handle various path formats including CI environment paths
Example transformations:
../codacy-cli-v2/cmd/install.go → cmd/install.go
../../home/runner/work/codacy-cli-v2/codacy-cli-v2/cmd/root.go → cmd/root.go1 parent 868a0a7 commit 3e978a2
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 97 | + | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
| |||
144 | 140 | | |
145 | 141 | | |
146 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
0 commit comments