File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,25 @@ export class ExportLogsCommand implements Command {
7878 }
7979 }
8080
81+ for ( const logFilePath of [
82+ '/tmp/gitpod-git-credential-helper.log' ,
83+ '/var/log/gitpod/supervisor.log' ,
84+ '/workspace/.gitpod/logs/docker-up.log'
85+ ] ) {
86+ try {
87+ const logFileUri = vscode . Uri . file ( logFilePath ) . with ( { scheme : "vscode-remote" } ) ;
88+ const fileContent = await vscode . workspace . fs . readFile ( logFileUri )
89+ if ( fileContent . byteLength > 0 ) {
90+ remoteLogFiles . push ( {
91+ path : path . posix . join ( './remote' , path . posix . basename ( logFileUri . path ) ) ,
92+ contents : Buffer . from ( fileContent )
93+ } ) ;
94+ }
95+ } catch {
96+ // no-op
97+ }
98+ }
99+
81100 const localLogFiles : IFile [ ] = [ ] ;
82101 await traverseFolder ( localLogsUri , localLogFiles , token ) ;
83102 localLogFiles . forEach ( file => file . path = path . posix . join ( './local' , path . posix . relative ( localLogsUri . path , file . path ) ) ) ;
You can’t perform that action at this time.
0 commit comments