mirror of
https://git.sr.ht/~phw/scotty
synced 2025-06-06 12:58:35 +02:00
If dump does no write to file, output the result as log
This commit is contained in:
parent
312d9860cf
commit
4da5697435
10 changed files with 29 additions and 15 deletions
|
@ -46,7 +46,7 @@ type ImportBackend interface {
|
|||
|
||||
// The implementation can perform all steps here to finalize the
|
||||
// export/import and free used resources.
|
||||
FinishImport() error
|
||||
FinishImport(result *ImportResult) error
|
||||
}
|
||||
|
||||
// Must be implemented by services supporting the export of listens.
|
||||
|
|
|
@ -169,6 +169,7 @@ type LovesResult ExportResult[LovesList]
|
|||
type LogEntryType string
|
||||
|
||||
const (
|
||||
Output LogEntryType = ""
|
||||
Info LogEntryType = "Info"
|
||||
Warning LogEntryType = "Warning"
|
||||
Error LogEntryType = "Error"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue