minor fixes, change help text
This commit is contained in:
@@ -270,8 +270,6 @@ func (c *Cache) Start(ctx context.Context) error {
|
|||||||
if c.mounter != nil {
|
if c.mounter != nil {
|
||||||
if err := c.mounter.Mount(ctx); err != nil {
|
if err := c.mounter.Mount(ctx); err != nil {
|
||||||
c.logger.Error().Err(err).Msgf("Failed to mount %s", c.config.Name)
|
c.logger.Error().Err(err).Msgf("Failed to mount %s", c.config.Name)
|
||||||
} else {
|
|
||||||
c.logger.Info().Msgf("Mounted %s at %s", c.config.Name, c.mounter.LocalPath)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
c.logger.Warn().Msgf("Mounting is disabled for %s", c.config.Name)
|
c.logger.Warn().Msgf("Mounting is disabled for %s", c.config.Name)
|
||||||
|
|||||||
@@ -362,7 +362,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<input type="text" class="input input-bordered" name="rclone.mount_path" id="rclone.mount_path" placeholder="/mnt/decypharr">
|
<input type="text" class="input input-bordered" name="rclone.mount_path" id="rclone.mount_path" placeholder="/mnt/decypharr">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
<span class="label-text-alt">Base directory where all providers will be mounted (e.g., /mnt/decypharr/realdebrid)</span>
|
<span class="label-text-alt">Base directory where all providers will be mounted (e.g., /mnt/decypharr)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -471,6 +471,7 @@ func (h *Handler) handleGet(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if streamErr.StatusCode > 0 {
|
if streamErr.StatusCode > 0 {
|
||||||
|
h.logger.Trace().Err(err).Msgf("Error streaming %s", fi.Name())
|
||||||
http.Error(w, streamErr.Error(), streamErr.StatusCode)
|
http.Error(w, streamErr.Error(), streamErr.StatusCode)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
@@ -480,6 +481,7 @@ func (h *Handler) handleGet(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Generic error
|
// Generic error
|
||||||
|
h.logger.Error().Err(err).Msgf("Error streaming file %s", fi.Name())
|
||||||
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
|
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user