Debugging when msgid's are auto added
This commit is contained in:
parent
2f55de2ddf
commit
d3a9e36bb7
@ -6,9 +6,9 @@
|
||||
namespace App\Traits;
|
||||
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
use App\Classes\FTN\Message;
|
||||
use App\Models\Setup;
|
||||
|
||||
trait MsgID
|
||||
{
|
||||
@ -18,6 +18,8 @@ trait MsgID
|
||||
if ((! $this->exists) && ($this->flags & Message::FLAG_LOCAL) && (is_null(Arr::get($this->attributes,'msgid')))) {
|
||||
$ftn = our_address($this->fftn);
|
||||
$this->attributes['msgid'] = sprintf('%s %08x',$ftn->ftn4d,timew());
|
||||
|
||||
Log::debug(sprintf('%s:- Auto setting msgid to [%s]',self::LOGKEY,$this->attributes['msgid']));
|
||||
}
|
||||
|
||||
return parent::save($options);
|
||||
|
Loading…
Reference in New Issue
Block a user