diff --git a/add_license_notice.sh b/add_license_notice.sh deleted file mode 100755 index eac98e986..000000000 --- a/add_license_notice.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -LICENSE_NOTICE="// Copyright (c) 2022-present, DiceDB contributors -// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information." - -# Find all Go files and add the notice if not already present -find . -type f -name "*.go" | while read -r FILE; do - # Check if the file already contains the license notice - if ! grep -qF "$LICENSE_NOTICE" "$FILE"; then - # Add the license notice at the top of the file - { echo "$LICENSE_NOTICE"; echo ""; cat "$FILE"; } > temp_file && mv temp_file "$FILE" - echo "Added license notice to $FILE" - else - echo "License notice already present in $FILE" - fi -done - -echo "Finished adding license notice to all Go files." diff --git a/server/main.go b/server/main.go index 34bfc72be..22c8a7bcf 100644 --- a/server/main.go +++ b/server/main.go @@ -97,10 +97,10 @@ func Start() { wl = _wl if err := wl.Init(time.Now()); err != nil { - slog.Error("could not initialize WAL", slog.Any("error", err)) - } else { - go wal.InitBG(wl) + slog.Fatal("WAL initialization failed, shutting down", slog.Any("error", err)) } + go wal.InitBG(wl) + slog.Debug("WAL initialization complete") }