Skip to content

incus: fix log in sftpRecursiveMkdir#3032

Merged
stgraber merged 1 commit intolxc:mainfrom
J0nasDotDev:fix-sftp-mkdir-log
Mar 13, 2026
Merged

incus: fix log in sftpRecursiveMkdir#3032
stgraber merged 1 commit intolxc:mainfrom
J0nasDotDev:fix-sftp-mkdir-log

Conversation

@J0nasDotDev
Copy link
Contributor

Resolves: #2994

Before:

$ echo "Hello" > baz
$ incus file push baz c1/foo/bar/ -p
ERROR  [2026-03-13T16:54:31+01:00] Creating foo (directory)                     
ERROR  [2026-03-13T16:54:31+01:00] Creating foo/bar (directory)                 
$ incus file create c1/foo2/bar/buz -p
ERROR  [2026-03-13T16:54:45+01:00] Creating foo2 (directory)                    
ERROR  [2026-03-13T16:54:45+01:00] Creating foo2/bar (directory)  

After:

$ incus file push baz c1/foo/bar/ -p
$ incus file create c1/foo2/bar/buz -p    

With --verbose :

$ incus file push baz c1/foo/bar/ -p --verbose 
INFO   [2026-03-13T17:02:32+01:00] Creating foo (directory)                     
INFO   [2026-03-13T17:02:32+01:00] Creating foo/bar (directory)                 
INFO   [2026-03-13T17:02:32+01:00] Pushing baz to foo/bar/baz (file)            
$ incus file create c1/foo2/bar/buz -p --verbose 
INFO   [2026-03-13T17:02:40+01:00] Creating foo2 (directory)                    
INFO   [2026-03-13T17:02:40+01:00] Creating foo2/bar (directory)    

Signed-off-by: Jonas Sprenger <jonas@sprenger.dev>
@J0nasDotDev J0nasDotDev requested a review from stgraber as a code owner March 13, 2026 16:04
@stgraber stgraber enabled auto-merge March 13, 2026 16:07
@stgraber stgraber disabled auto-merge March 13, 2026 17:56
@stgraber stgraber merged commit 06c31d6 into lxc:main Mar 13, 2026
55 of 56 checks passed
@J0nasDotDev J0nasDotDev deleted the fix-sftp-mkdir-log branch March 19, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

SFTP status messages are shown as ERRORs

2 participants