Skip to content

Commit

Permalink
Merge pull request #187
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
leonardosahon authored Oct 26, 2024
2 parents 22f1332 + e2f5b9d commit f8076d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Core/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ public static function always_log() : void
self::new()->log_always();
}

public static function log(string $message, $exception = null) : void
public static function log(mixed $message, $exception = null) : void
{
self::throw_exception($message, "ManualLog", kill: false, exception: $exception, throw_500: false);
self::always_log();
self::throw_exception(var_export($message, true), "ManualLog", kill: false, exception: $exception, throw_500: false);
}

/**
Expand Down

0 comments on commit f8076d7

Please sign in to comment.