diff --git a/init/init.go b/init/init.go index 22391ef..40c20e3 100644 --- a/init/init.go +++ b/init/init.go @@ -11,7 +11,7 @@ import ( ) // Init initializes the Pixeldrain Web UI controllers -func Init(r *httprouter.Router, prefix string) { +func Init(r *httprouter.Router, prefix string, setLogLevel bool) { log.Info("Starting web UI server (PID %v)", os.Getpid()) var webconf = &conf.PixelWebConfig{} @@ -27,5 +27,9 @@ func Init(r *httprouter.Router, prefix string) { os.Exit(1) } + if !webconf.DebugMode && setLogLevel { + log.SetLogLevel(log.LevelInfo) + } + webcontroller.New(r, prefix, webconf) } diff --git a/main.go b/main.go index 34c1191..d21dd97 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( func main() { r := httprouter.New() - web.Init(r, "") + web.Init(r, "", true) err := http.ListenAndServe(":8081", r) diff --git a/res/template/account/register.html b/res/template/account/register.html index 6c5c74a..6843737 100644 --- a/res/template/account/register.html +++ b/res/template/account/register.html @@ -49,7 +49,7 @@ (Click the white box) -
+
diff --git a/res/template/home.html b/res/template/home.html index 6957b8f..892d460 100644 --- a/res/template/home.html +++ b/res/template/home.html @@ -47,38 +47,6 @@ filesystem and served from Sia on the next request.

-

News

-

Data loss has occurred

-

- As noted at the start of this page, the integration with Sia - cloud storage is highly experimental, everyone who uses this - service should be aware of that fact. -

-

- I recently discovered that the Sia node that is storing the - files for this website had crashed because of a memory leak. The - Sia team is currently trying to figure out how this memory leak - occurred. It's likely the contract renewal went wrong which - caused the Sia node to become unstable. Now when I start the Sia - daemon it eats up about 1 GB of RAM per minute, so I've turned - it off for the time being. -

-

- In the short period that the Sia daemon keeps running I managed - to request a file listing. It seems that because of the failed - contracts about 80% of the stored files have dropped far below - 1x redundancy, meaning that they are lost. The upside of all - this is that the bug has been discovered before version 1.3.3 - has come out so it might be fixed in the next release, bringing - the Sia platform as a whole another step closer to being a - reliable data storage solution. -

-

- Anyway, don't be surprised if your previously uploaded files are - gone now. I will soon start purging all unrecoverable files from - the database so we can start over with a clean slate. -

-

Legality

I cannot be held liable for any illegal and / or copyrighted @@ -92,6 +60,10 @@ and I'll take care of it.
Please share responsibly.

+

+ For other questions you can reach me at + support@pixeldrain.com +

Funding

I'm currently paying for the Sia storage myself, since the site @@ -128,7 +100,7 @@

  • Pasting files from the clipboard
  • Current viewer count on files/lists
  • File revisions (update a file without changing the URL)
  • -
  • Proper file manager with directories (upcoming)
  • +
  • Proper file manager with directories (in progress)
  • Plenty more!
  • Missing

    @@ -143,7 +115,7 @@
  • Some video formats (mime type detection is not complete)
  • Bandwidth Tracker
  • View counter
  • -
  • Seasonal themes (thou shalt celebrate christmas!)
  • +
  • Seasonal themes
  • Style selector