-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add the possibility to override the temporary path used by Immich-go * Add environment variables section to README with IMMICHGO_TEMPDIR description * Add tests * Add log helper package for centralized logging functionality * Add OSFS interface to permit file system operations logging * Refactor CacheReader to use OSFS and add reference counting for temporary files * Update grouping logic to exclude live photos for burst detection
- Loading branch information
Showing
11 changed files
with
199 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package loghelper | ||
|
||
import "log/slog" | ||
|
||
var globalLogger *slog.Logger | ||
|
||
func SetGlobalLogger(l *slog.Logger) { | ||
globalLogger = l | ||
} | ||
|
||
func Log(message string, values ...interface{}) { | ||
if globalLogger != nil { | ||
globalLogger.Info(message, values...) | ||
} | ||
} | ||
|
||
func Info(message string, values ...interface{}) { | ||
if globalLogger != nil { | ||
globalLogger.Info(message, values...) | ||
} | ||
} | ||
|
||
func Error(message string, values ...interface{}) { | ||
if globalLogger != nil { | ||
globalLogger.Error(message, values...) | ||
} | ||
} | ||
|
||
func Warn(message string, values ...interface{}) { | ||
if globalLogger != nil { | ||
globalLogger.Warn(message, values...) | ||
} | ||
} | ||
|
||
func Debug(message string, values ...interface{}) { | ||
if globalLogger != nil { | ||
globalLogger.Debug(message, values...) | ||
} | ||
} |
Oops, something went wrong.